MajinSaha
October 13th, 2010, 11:15 AM
I would like to have my vertical scrollbars appear outside the textbox area once it is filled with too much text. Instead, they appear inside it and mess the whole text up. How should I do it ?
Thanks.
Thanks.
|
Click to See Complete Forum and Search --> : Scrollbars outside the window MajinSaha October 13th, 2010, 11:15 AM I would like to have my vertical scrollbars appear outside the textbox area once it is filled with too much text. Instead, they appear inside it and mess the whole text up. How should I do it ? Thanks. Eri523 October 13th, 2010, 06:54 PM You certainly can implement the scroll bar yourself using the VScrollBar (http://msdn.microsoft.com/en-us/library/system.windows.forms.vscrollbar.aspx) class. In that case you can place it anywhere you want and completely control its behaviour. But that would mean a vast lot more work compared to simply having the text box handle that itself. Do you really see no way around that? You could, for instance, set up the text box to have a scroll bar right from the start. The scroll bar would then be grayed until there actually is something to scroll. That way the usable width of the text box would not change. There is, BTW, no IDE support for the VScrollBar class. That wouldn't make things easier either... HTH MajinSaha October 18th, 2010, 08:06 AM I just made a rule to show text within some limited space so that the scrollbar doesn't ruin my text structure if it appeares. That is until I become more experienced and am able to ignore these kinds of compromise. codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |