Hi All,
I am trying to get Form keydown event in compact framework 3.5 but event is not triggering.
I have just one form form1.
whts problem...?
I am trying to get Form keydown event in compact framework 3.5 but event is not triggering.
I have just one form form1.
Code:
Public Class Form1
Dim oBinarySave As New Binary_Serialization
Dim FlagFormKeyDown As Boolean = False
Dim uicounter1 As UInt16 = 0
Dim uicounter2 As UInt16 = 0
Private Sub Form1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles MyBase.KeyDown
If Not FlagFormKeyDown Then
FlagFormKeyDown = True
uicounter1 += 1
Label1.Text = uicounter1
End If
End Sub
Private Sub Form1_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Panel1.KeyUp
uicounter2 += 1
Label2.Text = uicounter2
FlagFormKeyDown = False
End Sub
End Class
Comment