B Ben Dilts Jul 14, 2003 #1 Using VB.NET, is there a way to determine if the Shift key is down (or the Control key, etc.)? ~BenDilts( void );
Using VB.NET, is there a way to determine if the Shift key is down (or the Control key, etc.)? ~BenDilts( void );
J Jay B. Harlow [MVP - Outlook] Jul 14, 2003 #2 Ben, From a Control (remember Form is derived from Control). You can use the Control.ModifierKeys property. Control also has a Control.MouseButtons property to find the state of the mouse buttons. These are Shared/Static so they can be used when you do not have an instance of a Control/Form. Hope this helps Jay
Ben, From a Control (remember Form is derived from Control). You can use the Control.ModifierKeys property. Control also has a Control.MouseButtons property to find the state of the mouse buttons. These are Shared/Static so they can be used when you do not have an instance of a Control/Form. Hope this helps Jay
H Herfried K. Wagner Jul 14, 2003 #3 Hello, Ben Dilts said: Using VB.NET, is there a way to determine if the Shift key is down (or the Control key, etc.)? Click to expand... \\\ Imports System.Windows.Forms .. .. .. MsgBox((Control.ModifierKeys And Keys.Shift) = Keys.Shift) /// Regards, Herfried K. Wagner
Hello, Ben Dilts said: Using VB.NET, is there a way to determine if the Shift key is down (or the Control key, etc.)? Click to expand... \\\ Imports System.Windows.Forms .. .. .. MsgBox((Control.ModifierKeys And Keys.Shift) = Keys.Shift) /// Regards, Herfried K. Wagner