Solved

how do you scroll 2 text boxes with 1 vscroll bar

Posted on 1998-11-29
2
236 Views
Last Modified: 2010-05-03
I have 2 text boxes and a scrollbar which is not attached to nay of the text boxes and I need to scroll all the text boxes with one scroll bar
Text box 1 is "Text1"
Text box 2 is "Text2"
Scroll bar is "Vscroll1"
0
Comment
Question by:vb6
2 Comments
 
LVL 8

Accepted Solution

by:
MikeP090797 earned 100 total points
Comment Utility
Try this:
Text1.SetFocus
SendKeys "{DOWN}"
Text2.SetFocus
SendKeys "{DOWN}"
0
 
LVL 2

Expert Comment

by:trillo
Comment Utility
MikeP..... The code you posted is not possible because you can't give the focus to another control if you are scrolling a scrollbar, it's not a command button, on a scrollbar you keep the mousebutton pressed and move the little scrollbox..... And on the other hand, yoo could only send pagedown and up keys, but cannot control exactly the visible portion of text.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…

771 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

12 Experts available now in Live!

Get 1:1 Help Now