I am trying to write a program in Visual Basic (with VS 2010) that will respond to the arrow keys. I am aware that there are key listener in Java but not sure if such thing exist in VB and how to code it. Please show me some example on this.
Thanks.
Vb.net – Visual Basic Key Listener
keylistenervb.net
Best Answer
If you are doing winforms then set the KeyPreview property of the form to true and then set the KeyDown event. Your code will be like this: