This is a migrated thread and some comments may be shown as answers.

Detecting a truncated text inside a TextBox

0 Answers 146 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mohammed
Top achievements
Rank 1
Mohammed asked on 22 May 2012, 09:22 PM
Hi,

I have a text box in my detail section with a fixed width and height, however the text inside this text box (which is driven by database) may be very long. What I need to accomplish is a way to find out if the text inside the text box will be or is truncated (i.e. longer than the area provided by the text box) so that I can replace this long text with something shorter. Since I'm not using a fixed width font (like new courier) I can't depend on how many characters are their in the text! What should I do?

Thanks.

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Mohammed
Top achievements
Rank 1
Share this question
or