Scroll bars don't appear until I CLICK in the text box

C

cmbrown

Word 2003: I have set the ScrollBars property for my text box as
fmScrollBarsVertical. The problem is that the scroll bars don't appear until
the user CLICKS inside the textbox. So unless the user actually clicks in the
text box, the user has no way of knowing if there are more lines of text than
what appears in the box. Is there any way to get the scroll bar to ALWAYS
appear if there are more lines of text than what will display?

Thanks!
 
P

Pranav Vaidya

the scrollbars are shown when the textbox gets focus, so in your code try to
set the focus to the text box as soon as the form is show.

Regards,
Pranav
 
R

Rob

The problem with SetFocus is that it will move the cursor all the way down
to the last line. So you'll have to use CurLine to put it back to the top if
that's what you need.

TextBox1.SetFocus
TextBox1.CurLine = 0
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top