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
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