03-02-2021, 07:51 PM
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.
thank you for any help you can give :)
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