?
Solved

how do you scroll 2 text boxes with 1 vscroll bar

Posted on 1998-11-29
2
Medium Priority
?
244 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Accepted Solution

by:
MikeP090797 earned 200 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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

752 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