Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Using TEXTBOX --Setting Vertical Scrollbar to Bottom of Box?

Posted on 1998-11-19
1
Medium Priority
?
352 Views
Last Modified: 2010-05-03
I am using a textbox in my app. I have turned on the multiline feature and enabled scrollbars to appear. The one thing i cant figure out is how to set the vertical scrollbar to the bottom of what is inside the textbox's text field.
The reason is because i continuously add more text into this textbox all the time via a text file from my hard drive. Every time i add more and more text into the box the scrollbar remains "fixed" at the top of the box which completely makes sense, but i am looking for an automatic way of tell it to set the vertical scrollbar to the very bottom of the box.
0
Comment
Question by:aniston
1 Comment
 
LVL 7

Accepted Solution

by:
kamall earned 40 total points
ID: 1445771
Every time you add text to the box, set the focus to the text box and use the SendKeys statement with 'PGDN' (Page Down) to send a few page down keystroks to it.
Hope that helps.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month10 days, 13 hours left to enroll

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question