em me again :p
Just want a scroll bar to appear if theres to much text to fit in the box..
not much else i can say i guess :ehh:
Printable View
em me again :p
Just want a scroll bar to appear if theres to much text to fit in the box..
not much else i can say i guess :ehh:
Just set the Scrollbars property to either Horizontal, Vertical or Both. You'll also need to set the Multiline property = True.
Just set the scrollbars property of yout Textbox :)
EDIT: OOOPs, took way too long - was writing a code that was un-needed. I forgot about the ScrollBars Property untill a moment ago :P
Cheers,
RyanJ
Ah silly me,
i set the property to Both but only the verticall is working the horizontal doesnt appear but the vertical does
thx
i have the text box set to resize to the same as the form using :
VB Code:
Text1.Move 0, 0, Me.Width - 90, Me.Height - 390
Any suggestions? its definatly that code Above ^^ because when i remove it i can see the Horizontal bar
looks like i need a different code for resizing ?
Normally the horizontal scrollbar is not normally required.
In your case, the textbox is being resized to a size smaller than the original and, so displays it.
It should display anyway though :\
Cheers,
RyanJ
The horizontal scrollbar should always be at the bottom, however, the slider wont show unless the text is longer than the width of the textbox. And that will only happen if you have word wrap set to false also.
Yeah your right i just removed the hor bar and it done word wrap basicly
You should change that code. That code expects that the title bar and borders take up 390 twips, which might not be true. Always use the ScaleWidth and ScaleHeight properties instead.Quote:
Originally Posted by WilliamRobinson
VB Code:
Text1.Move 0, 0, Me.ScaleWidth, Me.ScaleHeight
ah now i can see the HOR bar, not that i need it anymore but still a good thing :wave:
Cheers Everyone