Solved

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

Posted on 1998-11-19
1
315 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 20 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

706 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now