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!

HotKey: If certain key was pressed, open form 1

Status
Not open for further replies.

rennis

Programmer
Dec 6, 2006
80
CA
Is it possible to open a form if alt + any letter or shift + any letter was pressed?

so for example, if alt + e = true then
frmForm1.show

Any assistance would be greatly appreciated.
 
I take it you want to do this from within another form in your application. If so, set the calling form's KeyPreview property to True and use the form's Key_Up event. This event returns a Keycode to tell you which key is pressed and a Shift code which tells you which combination of Shift. Alt and Control was pressed

___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
Steam Engine Prints
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top