- 博客(1)
- 资源 (2)
- 收藏
- 关注
转载 How do I autosize a button to fit its text
Get a Graphics object for the button and use its MeasureString method to compute the width you need. Graphics g = button1.CreateGraphics(); float w = g.MeasureString(button1.Text, button1.
2006-04-10 11:15:00
559
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人