textbox- scrollbars not appearing at first

textbox- scrollbars not appearing at first

Anonymous
Not applicable
795 Views
5 Replies
Message 1 of 6

textbox- scrollbars not appearing at first

Anonymous
Not applicable
hi,
i have a textbox which displays .txt file.i have vertical scrollbars property on.
the length is very long than height of textbox.when the first time textbox is displayed, scrollbars doesnt appear.when i click on textbox it appears. but goes to end of the content in textbox.
in help file thr is property of keepscrollbarsvisible.but it is not working in vba i think.pl help me.
thanx.
0 Likes
796 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
the ScrollBars property will control whether scroll bars are displayed.
another property, WordWrap, will determine whether there is a vertical or
horizontal scrollbar. to get both to come on at the same time you need to
change the EnterKeyBehavior property to True and the WordWrap property to
False. I think thats what you are trying to acheive, but maybe not.

Either way, the scroll bar(s) will appear automatically when the entered
text has gone beyond the predefined size of the textbox.

joe ...


wrote in message news:5647559@discussion.autodesk.com...
hi,
i have a textbox which displays .txt file.i have vertical scrollbars
property on.
the length is very long than height of textbox.when the first time
textbox is displayed, scrollbars doesnt appear.when i click on textbox it
appears. but goes to end of the content in textbox.
in help file thr is property of keepscrollbarsvisible.but it is not
working in vba i think.pl help me.
thanx.
0 Likes
Message 3 of 6

Anonymous
Not applicable
thanx joe,
i just want vertical scroll.i tried as u said and many other things.my prob is that when textbox appeares thr is no verti. scrollbar.when i click on textbox,scroll appears but immeadiately it goes to last part of text in textbox.why?
regards
0 Likes
Message 4 of 6

Anonymous
Not applicable
Hi, I have about the same problem than you...
I'm writing a Macro, and i have a TextBox that display a long text.
To get only a Vertical scrollbar, set the scrollbars property to "2 - fmScrollBarsVertical"
And to make your scrollbar appear directly, just set the focus on the control when you load the page or whenever you need it, that will make the scrollbar appear, but it appears DOWN... and that's my problem.
The scrollbar property of the textbox doesn't seem to have a percentage property, and i don't know if it's possible to keep it up once you have a text entered...
If you or anyone else would have the solution, that would help 🙂
0 Likes
Message 5 of 6

Anonymous
Not applicable
not until now!!
0 Likes
Message 6 of 6

Anonymous
Not applicable
use SelStart=0
0 Likes