Is it possible to show/hide the scroll bar in a text box only when the line count in the text box is more than the number of lines displayed?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Carriage Return (ASCII chr 13) is missing from tex
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
I've got tnimas solution working in vb. Functions quite well as written and I've not seen the errors.
Thanks dummy, it works! Here short version of dummy answer in c#
Call this code at the end of your SizeChanged and TextChanged handlers:
Consider using the RichTextBox -- it has that behavior built in.