Jump to content

Capture D-Pad Actions


Guest simonster

Recommended Posts

Guest simonster

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

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 by ezekio
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.