|
-
Apr 18th, 2005, 04:20 PM
#1
Thread Starter
Addicted Member
ScrollBars - In TextBox [RESOLVED]
em me again 
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
Last edited by WilliamRobinson; Apr 18th, 2005 at 05:01 PM.
Nothing is Impossible you say?......Try slamming a revolving door!
-
Apr 18th, 2005, 04:25 PM
#2
Fanatic Member
Re: ScrollBars - In TextBox
Just set the Scrollbars property to either Horizontal, Vertical or Both. You'll also need to set the Multiline property = True.
-
Apr 18th, 2005, 04:31 PM
#3
Re: ScrollBars - In TextBox
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
-
Apr 18th, 2005, 04:33 PM
#4
Thread Starter
Addicted Member
Re: ScrollBars - In TextBox
Ah silly me,
i set the property to Both but only the verticall is working the horizontal doesnt appear but the vertical does
thx
Nothing is Impossible you say?......Try slamming a revolving door!
-
Apr 18th, 2005, 04:35 PM
#5
Thread Starter
Addicted Member
Re: ScrollBars - In TextBox
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
Nothing is Impossible you say?......Try slamming a revolving door!
-
Apr 18th, 2005, 04:42 PM
#6
Thread Starter
Addicted Member
Re: ScrollBars - In TextBox
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 ?
Nothing is Impossible you say?......Try slamming a revolving door!
-
Apr 18th, 2005, 04:51 PM
#7
Re: ScrollBars - In TextBox
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
-
Apr 18th, 2005, 04:53 PM
#8
Fanatic Member
Re: ScrollBars - In TextBox
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.
-
Apr 18th, 2005, 04:55 PM
#9
Thread Starter
Addicted Member
Re: ScrollBars - In TextBox
Yeah your right i just removed the hor bar and it done word wrap basicly
Nothing is Impossible you say?......Try slamming a revolving door!
-
Apr 18th, 2005, 05:01 PM
#10
Re: ScrollBars - In TextBox
 Originally Posted by WilliamRobinson
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
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.
VB Code:
Text1.Move 0, 0, Me.ScaleWidth, Me.ScaleHeight
-
Apr 18th, 2005, 05:16 PM
#11
Thread Starter
Addicted Member
Re: ScrollBars - In TextBox [RESOLVED]
ah now i can see the HOR bar, not that i need it anymore but still a good thing
Cheers Everyone
Nothing is Impossible you say?......Try slamming a revolving door!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|