I've been searching without much luck on this one. I tried searching all of Tek-tips for the words scroll and vb even (with plenty of results, but none that seemed applicable).
What I am trying to do is, make buttons that act just like
the scroll bars in a form. I dont want to use scrollbars
because I have nested forms, and having the scrollbars at
the edges of a form within another form will look odd, and
not very intuitive.
I thought I could utilize the mousedown event of a button,
but that only performs the action once (only one lines worth). It also doesnt seem to allow the mouse up event to occur (I am sure its because I am not using it correctly yet, but as I said... havent had much luck finding examples). The button goes down, and the code executes, but the button doesnt come back up, and i cant figure out how to essentially loop that code while the mouse is down.
Any one know of the best method for allowing someone to click on a button, and have that button scroll a form as long as they hold the mouse down?
Regards,
Tj
What I am trying to do is, make buttons that act just like
the scroll bars in a form. I dont want to use scrollbars
because I have nested forms, and having the scrollbars at
the edges of a form within another form will look odd, and
not very intuitive.
I thought I could utilize the mousedown event of a button,
but that only performs the action once (only one lines worth). It also doesnt seem to allow the mouse up event to occur (I am sure its because I am not using it correctly yet, but as I said... havent had much luck finding examples). The button goes down, and the code executes, but the button doesnt come back up, and i cant figure out how to essentially loop that code while the mouse is down.
Any one know of the best method for allowing someone to click on a button, and have that button scroll a form as long as they hold the mouse down?
Regards,
Tj