Capture Keypress in elementhost1
#1
Hi
i have converted most of the Duck Lake sample, but i am having a problem getting the keypress event it never catches the keypress any idea how i can get it to work, this is VB.NET with elementhost btw.

Code:
Private Sub ElementHost1_KeyDown(sender As Object, e As Forms.KeyEventArgs) Handles ElementHost1.KeyDown


       Select Case e.KeyCode
           Case Key.F1 'Move
               CHK_MoveModel.Checked = True
               e.Handled = True
           Case Key.F2 'Rotate
               CHK_RotateModel.Checked = True
               e.Handled = True
           Case Key.F3 'Scale
               CHK_ScaleModel.Checked = True
               e.Handled = True
       End Select
   End Sub
thank you for any help you can give :)
Kevan Hampson
  


Messages In This Thread
Capture Keypress in elementhost1 - by GraPhiX - 03-02-2021, 07:51 PM
RE: Capture Keypress in elementhost1 - by GraPhiX - 03-03-2021, 08:10 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)