日期:2014-05-18 浏览次数:20934 次
Graphics g = textBox2.CreateGraphics();
SizeF size = g.MeasureString(textBox2.Text, textBox2.Font);
if (size.Width >= textBox2.Width)
{
MessageBox.Show("超出");
}