Link to home
Start Free TrialLog in
Avatar of raulopez
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.
ASKER CERTIFIED SOLUTION
Avatar of arfnarfsi
arfnarfsi

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Vbmaster
Vbmaster

.. or increase/decrease the .Value property (instead of duplicating the subroutines).
Avatar of raulopez

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.