troubleshooting Question

Handle keydowns on a form with tab pages....

Avatar of indy500fan
indy500fan asked on
.NET ProgrammingVisual Basic.NET
4 Comments1 Solution334 ViewsLast Modified:
Friends,

I have a form with 2 TabPages and I want to be able to press the F keys.  However, when I try and push F9 for example, the Handles MyBase.KeyDown is never reached.

What's going on?

Thanks in advance!

Best Regards,
Eric
Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
        'When the function keys are pressed, FuncKeysModule is called.
 
        If e.KeyValue = Keys.F1 Or Keys.F2 Or Keys.F3 Or Keys.F4 Or Keys.F5 Or Keys.F6 Or Keys.F7 Or Keys.F8 Or Keys.F9 Or Keys.F10 Or Keys.F11 Or Keys.F12 Then
            FuncKeysModule(e.KeyValue)
            e.Handled = True
        End If
    End Sub
ASKER CERTIFIED SOLUTION
Hawkvalley1

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros