Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"ALT" Key Code

Status
Not open for further replies.

jedel

Programmer
Jan 11, 2003
430
AU
Hi All

Can anyone tell me what the keycode is for the 'Alt' Button?

I'm trying to trap the CTRL + ALT + DEL group of keys and provide the user with a message once that series of buttons is pressed.

I have the code for the ctrl and Del buttons, but not the Alt

Also, when you write the "Case" statement, do you just place a plus (+) sign between the Keycodes? ie vbKeyControl + vbKeyDelete.

Thanks in advance.

Jedel
 
The values that you are looking for can be found in the VB Help under Sendkeys.

They are CTRL ^, ALT % and unlike VB you would not use a plus sign. The plus sign would equal the shift key.

^%{DEL} would be the CRTL ALT DEL combination that you are looking for.


HTH,

Steve
 
>trying to trap the CTRL + ALT + DEL

Which operating system? I ask because you cannot trap this particular key sequence in NT3.51, NT4, W2000, XP or W2003 (well, not quite true, but it would require rewriting something called the GINA, which is part of the operating system's security subsystem, and is a non-trivial exercise that certainly cannot be done in Access)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top