raulopez
asked on
Scrolling a picture box
Hello experts!
I'm using a VScrollBar and a HScrolBar to scroll a picture box, but I also want to scroll vertcally the picture box by using the keyboard keys arrow up and arrow down, and horizontally by using the keyboard keys arrow left and arrow right.
How could I do it?
Thanks in advance.
I'm using a VScrollBar and a HScrolBar to scroll a picture box, but I also want to scroll vertcally the picture box by using the keyboard keys arrow up and arrow down, and horizontally by using the keyboard keys arrow left and arrow right.
How could I do it?
Thanks in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
.. or increase/decrease the .Value property (instead of duplicating the subroutines).
ASKER
To: arfnarfsi
Sorry, but VB5 don't have form's KeyPreview event.
I've make the job in form's KeyCode event and works ok.
Thanks a lot for your answer.
Sorry, but VB5 don't have form's KeyPreview event.
I've make the job in form's KeyCode event and works ok.
Thanks a lot for your answer.