H
Himselff
Hi guys,
Sorry for the cross-post but the guys in simgle dot net seem a bit loose
when we talk of pocket pc,
Im trying to bin a key to a button whit the keypress event of the form, per
exemple i got a button called cmdProduction
i want when u strike the "P" or "p" key on the keyboard that the
button_click event fire,
so far i got this but it does not seem to work :
Private Sub FrmMain_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles MyBase.KeyPress
If e.KeyChar = "P" Or e.KeyChar = "p" Then
e.Handled = True
Call BtmProduit_Click(sender, e)
End If
end sub
This litle code dont even fire the keypress event of the form so im
wondering what im doiing wrong !
Thanks in advance !
Himselff
Sorry for the cross-post but the guys in simgle dot net seem a bit loose
when we talk of pocket pc,
Im trying to bin a key to a button whit the keypress event of the form, per
exemple i got a button called cmdProduction
i want when u strike the "P" or "p" key on the keyboard that the
button_click event fire,
so far i got this but it does not seem to work :
Private Sub FrmMain_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles MyBase.KeyPress
If e.KeyChar = "P" Or e.KeyChar = "p" Then
e.Handled = True
Call BtmProduit_Click(sender, e)
End If
end sub
This litle code dont even fire the keypress event of the form so im
wondering what im doiing wrong !
Thanks in advance !
Himselff