thiago costa

thiago costa

  • NA
  • 319
  • 0

[SOLVED]How do I make Configurable Key Down Events ???

Apr 29 2012 8:15 PM
Hello there guys, I am working on a new idea I had...

This is what I am looking do to, but I have no idea how.

This is pretty much what I want,

User can configure 20 Keys, of his/her choise to do things..

Example, I have 10 functions on the program,    Play sound1, play sound 2, play sound 3, play sound 4,  play sound 5, etc... (i will be using windows media inside visual studio)

Ok, so in another words, I added 20 windows media players(invisible) to my form...

It's very easy to make something play programatically, but, I want to have configurable keys. For example...

User can choose which keyboard key will play which sound,

Example:

C = players sound1
Y = Plays sound2

How do I make this happen ?
I thought about keydown event, but I'm really not sure what im doing... specially knowing I want the user to be able to select the desired key.

Thanks guys.

Answers (1)