Thursday, April 06, 2006

Simple Things


Sometimes it's the simple things. Several times when coding Winforms apps I've run into a situation where I need to know the current state of the mouse or keyboard. It's one of those tasks that for some reason I am unable to get a hit on a search engine.

Fortunately though the information is quite easy. You can access the current state of the keyboard or mouse at any time via the static methods on the Control class


  • MousePosition

  • MouseButtons

  • ModifierKeys

0 Comments:

Post a Comment

<< Home