| Visual Basic (Declaration) | |
|---|---|
Public shift As Short | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As MouseMoveEventArgs Dim value As Short value = instance.shift instance.shift = value | |
| C# | |
|---|---|
public short shift | |
| C++/CLI | |
|---|---|
public: short shift | |
Value that indicates which of the SHIFT, CTRL, and ALT keys are down when the user moved the mouse. The following are possible values: Value Meaning 1 SHIFT key 2 CTRL key 4 ALT key 3 CTRL/SHIFT key 5 ALT/SHIFT key 6 CTRL/ALT key 7 CTRL/ALT/SHIFT key
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7