Guest simonster Posted December 3, 2005 Report Share Posted December 3, 2005 Hey, Noobie trying to do stuff with scrollbars. I'm using VS2003 and VB. I have a pannel that I want to scroll up and down, with a picturebox in it and no other controls. I can do it by assigning a scrollbar and capturing key presses, but not with the d-pad. Anyone know any way of doing it? Simonster Link to comment Share on other sites More sharing options...
Guest ezekio Posted December 9, 2005 Report Share Posted December 9, 2005 (edited) This is how it looks in C#. hope this can help you convert the code to VB.net: protected override void onkeydown(KeyEventArgs e) { switch (e.KeyCode) { case Keys.Up: DoStuff(); break; case Keys.Down: break; case Keys.Left: break; case Keys.Right: break; } base.onkeydown(e); } Edited December 9, 2005 by ezekio Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now