I've used AsynckeyDown to access function keys. It's a hack, of course...
Make a new class in your project. Set the Super to Timer. Mode 2, Period
0.
In the Action event of the Timer, place the following code:
If Keyboard.AsynckeyDown(&h7A) then
HelpWindow.Show
End If
Make a MenuItem for it and place this in the MenuHandler:
HelpWindow.Show
In the Open event of the main Window (menuHelp is the MenuItem):
menuHelp.Text = "Help" + Chr(09) + "F1"
You should be able to apply the same theory to the original question.
If Keyboard.AsyncCommandKey and Keyboard.AsynckeyDown(&h33) then
// Your code
End If
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>