Boni wrote:
Dear Sirs,
how is it possible to know if all text in a textbox is visible or the text
was too long and a part is invisible?
So I need to know max number of characters in visible space.
You should be able to measure the length of the string in the OnPaint
procedure of the textbox. I think you have to add a handler to get
access to it. Then check if the lenght of the textbox is long enough to
handle the length of the string. Use the graphics.measurestring method.
You'll get the graphics object passed in which is why you should do
this in the OnPaint procedure.
Hope it helps.
Chris