-
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?
-
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
-
okay, meg. all he asked for was a simple answer. not a whole story explaining how things work. :)
-
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!!!).