Textbox's text cut short

  • Thread starter Thread starter creator_bob
  • Start date Start date
C

creator_bob

How do I detect if a text box had its text cut short? When I
dynamically create text boxes, any with incomplete text I would like to
add its text to a tool-tip.
 
creator_bob said:
How do I detect if a text box had its text cut short? When I
dynamically create text boxes, any with incomplete text I would like to
add its text to a tool-tip.

You could use 'Graphics.MeasureString' to measure the text shown in the
control. However, note that this won't lead to accurate results because
'Graphics' uses GDI+ and the textbox control is drawn by Windows using GDI.
 
Back
Top