Managing the Keyboard

You can check for the state of some keyboard keys. My.Computer.Keyboard allows accomplishing this via six properties. Three are about the Caps-lock, Num-lock, and Scroll-lock keys, whereas the other three allow getting the state (pressed or not) of Alt, Shift, and Ctrl. The following code provides a complete example:

image

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.138.118.103