|
-
Jun 16th, 2000, 05:45 AM
#1
Thread Starter
Hyperactive Member
When someone presses alt in an application, it selects the first menu or selects the menu in the control bar halting other actions currently going on in the application. How would I go about disabling this so that the program's functions aren't halted?
-
Jun 16th, 2000, 06:24 AM
#2
The Alt key is represented by the KeyCode 18, therefor if you reset the KeyCode when 18 is pressed, it will be omitted.
Try this code. Put it in the KeyDown event of the form.
Code:
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 18 Then KeyCode = 0
End Sub
-
Jun 16th, 2000, 06:29 AM
#3
Lively Member
okay, meg. all he asked for was a simple answer. not a whole story explaining how things work. 
-
Jun 16th, 2000, 09:57 AM
#4
Thread Starter
Hyperactive Member
Actually, thanks Megatron for explaining. It's just funny because I knew I could do that, it's just I immediatly accepted that it wouldn't work. I thought I would have to subclass the keyboard or something. Allright, well thanks a lot Megatron (Transformers rule - "Robot's in disguise" - I have the movie!!!).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|