How do I disable the arrow keys

I am using the keydown function to control some stepper motors with the arrow keys in vb6. My problem is that as I use the arrow keys they also automatically cycle through the buttons like the tab button does. I have set the tab stop to false so tab no longer works on the buttons however, the arrow keys still work. How do I disable or override the automatic functionality of these keys so that they will only function for my stepper motors?

Thanks

Comments

  • The "KeyPreview"-Property and the KeyCodes "vbKeyLeft", "vbKeyUp", "vbKeyDown" and "vbKeyRight" are your friends......


    : I am using the keydown function to control some stepper motors with
    : the arrow keys in vb6. My problem is that as I use the arrow keys
    : they also automatically cycle through the buttons like the tab
    : button does. I have set the tab stop to false so tab no longer
    : works on the buttons however, the arrow keys still work. How do I
    : disable or override the automatic functionality of these keys so
    : that they will only function for my stepper motors?
    :
    : Thanks
    :
    :

    ------------------------------------------
    Only stupidity of mankind and the universe
    are infinite, but i'm not sure concerning
    the universe. A. Einstein
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion