G
Guest
I want to have my textbox display a scrollbar if there is more text than will
fit, but to make it invisible if it will all fit. Is this possible?
The default behavior if all the text fits is a visible, but grayed out
scrollbar.
There doesn't appear to be a way to define this behavior using properties.
I thought about doing it manually by checking if number of lines of text was
greater than the number of lines in the textbox. But can't figure out how to
get the first value (the 2nd can be magic numbered) because the
textbox.Lines.Length property returns the number of logical lines, not the
number that are/would be displayed due to word wrapping.
Is there annother approach I've not thought of?
fit, but to make it invisible if it will all fit. Is this possible?
The default behavior if all the text fits is a visible, but grayed out
scrollbar.
There doesn't appear to be a way to define this behavior using properties.
I thought about doing it manually by checking if number of lines of text was
greater than the number of lines in the textbox. But can't figure out how to
get the first value (the 2nd can be magic numbered) because the
textbox.Lines.Length property returns the number of logical lines, not the
number that are/would be displayed due to word wrapping.
Is there annother approach I've not thought of?