• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 644
  • Last Modified:

How to manipulate a scroll bar in vb

My form contains a textbox which is bound to a memo field, and often cannot display the full length of the memo.

When this occurs, I'd like to automatically scroll down so only the last few lines of the memo are displayed in the textbox (so the user can see and add text to the end of the memo).

Is this possible?  How?  Can the vertical scroll bar and/or the increment arrows at the ends of the scroll bar be manipulated in vba?
0
David_W_R
Asked:
David_W_R
1 Solution
 
Rey Obrero (Capricorn1)Commented:
try setting the cursor to the end of the text in the textbox

me.text0.selstart=len(me.text0.text)
0
 
David_W_RAuthor Commented:
That's it.  Thanks for the timely response yet again, capricorn1
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now