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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top