Hello!
I know this is a dumb question.
Say for instance I have a menu on my form. When F10 is pressed, it activates the menu. It does that with every window in every application.
How can I prevent the menu becoming Active when F10 is pressed ¿
Printable View
Hello!
I know this is a dumb question.
Say for instance I have a menu on my form. When F10 is pressed, it activates the menu. It does that with every window in every application.
How can I prevent the menu becoming Active when F10 is pressed ¿
Does this happen in Windows in general????
edit: My system only selects file menu, but does not display it.
That's what I mean, yes.
Any ideas ¿
This will disable it in your program:
VB Code:
Private Sub Form_Load Me.KeyPreview = True End Sub Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer) If KeyCode = vbKeyF10 Then KeyCode = 0 End If End Sub Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = vbKeyF10 Then KeyCode = 0 End If End Sub
Hahaha, I'm so STUPID!! Man, I've been trying System Hooks, even tried the GetMenu API's.
Man I am just so stupid!!
Beleive it or not, I'm better than this
Hahaha
You've made my day!
HanneSThEStupiD!