Solved

how do you scroll 2 text boxes with 1 vscroll bar

Posted on 1998-11-29
2
237 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
ID: 1447310
Try this:
Text1.SetFocus
SendKeys "{DOWN}"
Text2.SetFocus
SendKeys "{DOWN}"
0
 
LVL 2

Expert Comment

by:trillo
ID: 1447311
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

863 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

20 Experts available now in Live!

Get 1:1 Help Now