P
Paul
I have a MDI form which hosts numerous MdiChildren forms. I want to
prevent the users from toggling to other MdiChildren forms. The
program allows it by pressing Ctl+F6 or Ctl+Tab.
In the MDI form I use the KeyUp event and set Handles = True:
Private Sub FrontierMDI_KeyUp(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyUp
Select Case e.KeyCode
Case Keys.F6
If (e.Control) Then
e.Handled = True
End If
End Select
End Sub
This doesn't work. It still toggles the MdiChildren form. And I do
have the KeyPreview set to True for the MDI form. I have verified that
the e.Handled = True code is run by using Debug.Writline statements.
I also have tried putting this same code in the forms. Nothing has
worked so far.
I would appreciate any help!
prevent the users from toggling to other MdiChildren forms. The
program allows it by pressing Ctl+F6 or Ctl+Tab.
In the MDI form I use the KeyUp event and set Handles = True:
Private Sub FrontierMDI_KeyUp(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyUp
Select Case e.KeyCode
Case Keys.F6
If (e.Control) Then
e.Handled = True
End If
End Select
End Sub
This doesn't work. It still toggles the MdiChildren form. And I do
have the KeyPreview set to True for the MDI form. I have verified that
the e.Handled = True code is run by using Debug.Writline statements.
I also have tried putting this same code in the forms. Nothing has
worked so far.
I would appreciate any help!