Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

VB.net - Convert key to string

Options
  • 15-12-2004 6:08pm
    #1
    Closed Accounts Posts: 703 ✭✭✭


    I have an onkeyup event for a form I'm designing; I want to be able to (a) detect which key was pressed [solved] and (b) to convert a string in a variable into a sequence of keys for comparison.

    so its basically like this: user presses a button, get the key, convert string from a variable into a keycode then compare the two.

    I've tried using 'keysconverter' but have failed miserably.

    Any ideas?


Comments

  • Closed Accounts Posts: 703 ✭✭✭SolarNexus


    problem solved, for me at least.

    I used keys.KeyCode.ToString


Advertisement