Getting the keyboard state in MouseMove

  • Thread starter Thread starter Roger Crawfis
  • Start date Start date
R

Roger Crawfis

In my windows app, I have an event handler for the mouse move, and want to
allow for constrained interaction using the shift or control keys. I can not
figure out how to get the state of the shift, control or alt key modifiers
for the mouse. The mouseEventArgs does not seems to have anything, and
casting the sender to a control and trying to inquire has led to compiler
errors. This functionality exists in the Drag and Drop event args, but not
the mouse. How do we determine the key modifiers for the mouse in .NET?

Roger
 
Sijin,

Great. Thanks. I saw this in one of the books, but I did not realize it was
a static member. Intellisense was not showing it on an instance variable.

Thanks,
Roger
 
Back
Top