Re: Capture Shift Held Down When Application Starts?
From: Samuel R. Neff (blinex_at_newsgroup.nospam)
Date: 02/14/05
- Next message: Alvin Bruney [MVP]: "Re: what is the best way to read text file"
- Previous message: Patrice: "Re: For vs. For Each"
- In reply to: Othman Kinani: "RE: Capture Shift Held Down When Application Starts?"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 14 Feb 2005 13:39:21 -0500
If Control.ModifierKeys = Keys.Shift Then
' Shift is being held down.. special processing...
End If
This checks if Shift is the only modifier key being pressed. If you
want to check if shift or any other key is pressed, then use
If (Control.ModifierKeys And Keys.Shift) = Keys.Shift Then
' Shift is being held down.. special processing...
End If
HTH,
Sam
>> Hi All,
>>
>> I'm writing a launcher program which checks for updates and copies them down
>> to the client.
>> However, I would like the user to be able to modify the settings for the
>> launcher. As this runs automatically, I would like it to be configurable by
>> the user holding down the shift key when double-clicking my exe, to bypass
>> the usual update routine and start the config form.
>>
>> Access does something similar, by holding down the shift to bypass the
>> autoexec macros with automatically starts on startup.
>>
>> I'm already checking for command parameters to start the config, but that
>> isn't acceptable, and the user would have to modify the shortcut etc.
>>
>> Any ideas?
>>
>> Thanks
>>
>> Alex
B-Line is now hiring one VB.NET developer for
WinForms + WebServices position with ASPX in future.
Seaking mid to senior level developer. For
information or to apply e-mail sam_blinex_com.
- Next message: Alvin Bruney [MVP]: "Re: what is the best way to read text file"
- Previous message: Patrice: "Re: For vs. For Each"
- In reply to: Othman Kinani: "RE: Capture Shift Held Down When Application Starts?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|