|
-
Aug 18th, 2006, 07:50 AM
#1
Menubar popup when F10 is pressed
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 ¿
VB.NET MVP 2008 - Present
-
Aug 18th, 2006, 07:52 AM
#2
Re: Menubar popup when F10 is pressed
Does this happen in Windows in general????
edit: My system only selects file menu, but does not display it.
-
Aug 18th, 2006, 08:05 AM
#3
Re: Menubar popup when F10 is pressed
That's what I mean, yes.
Any ideas ¿
VB.NET MVP 2008 - Present
-
Aug 18th, 2006, 08:06 AM
#4
Hyperactive Member
Re: Menubar popup when F10 is pressed
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
-
Aug 18th, 2006, 08:10 AM
#5
Re: Menubar popup when F10 is pressed
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!
VB.NET MVP 2008 - Present
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
|