Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Vertically Scroll a form

Status
Not open for further replies.

Easler

Programmer
Jan 11, 2002
6
0
0
US
I inhereted this application and admit I know little about scrolling forms. Apparently, a picturebox is being used to scroll the form using the following code:

VScroll1.Max = Picture2.Height - Picture1.Height
VScroll1.LargeChange = VScroll1.Max / 5
VScroll1.SmallChange = VScroll1.Max / 25
VScroll1.Height = Picture1.Height

This scrolls fine, however, each time you scroll the form you lose the cursor location. Is there a way to hold that location while you scroll such that the textbox you left off at is still active or has the focus?
Thanks for your help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top