I want to able to hold a key down while the application is loading and depending on which is being held down a certain form is shown.
For example holding down shift and the opening itunes opens a little dialog allowing you set the library(or something)
I can check whether the shift/Ctrl/Alt are being held down but i’d prefer to use the letters/digits.
Such as hold 1 down to open Form1 and hold 2 down to open form 2.
If you’re wanting to do this on traditional winforms, you can check out this article:
http://www.switchonthecode.com/tutorials/winforms-accessing-mouse-and-keyboard-state
About half-way down there’s an abstract Keyboard class that uses a system call to get key states. You might want to give it a try.
EDIT: Here’s that class converted to VB.NET. I haven’t tested it so there might be some errors. Let me know.
So once you add this class to your project, you can do something like this: