PatrioticTX
Programmer
I would like to hide the scrollbar on a multiline textbox if the amount of text does not exceed the visible bounds. For example, if the textbox height allows the display of two text lines, and up to two lines are typed in, I do not want the scrollbar to be visible (VB default is to disable the scrollbar). Once the number of lines typed exceeds two, I want the scrollbar to be visible.
Is there some type of property that I am overlooking that can return the number of lines displayed?
I was originally going to set the scrollbar to be visible when the control had focus, but the
property is readonly at runtime.
Is there some type of property that I am overlooking that can return the number of lines displayed?
I was originally going to set the scrollbar to be visible when the control had focus, but the
Code:
scrollbars