Can I tell if Ctrl is pressed in MouseDown

A

active

In VB6 I believe MouseDown had a Shift argument that told if Shift, Ctrl or
Alt was pressed.

How in VB.NET MouseDown do I determine if one of these keys is pressed?

I could increment a global variable in KeyDown and Decrement it on KeyUp but
I'm hoping I can simply access a system wide property.

Is there a simple way to determine in MouseDown if one of those 3 keys is
pressed??


Cal
 
H

Herfried K. Wagner [MVP]

* " active said:
In VB6 I believe MouseDown had a Shift argument that told if Shift, Ctrl or
Alt was pressed.

How in VB.NET MouseDown do I determine if one of these keys is pressed?

I could increment a global variable in KeyDown and Decrement it on KeyUp but
I'm hoping I can simply access a system wide property.

Is there a simple way to determine in MouseDown if one of those 3 keys is
pressed??

\\\
If (Control.ModifierKeys And Keys.Control) > 0 Then
...
End If
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top