V
vbmark
Here is the PreFilterMessage function:
Public Function PreFilterMessage(ByRef m As _
Microsoft.WindowsCE.Forms.Message) As Boolean Implements _
OpenNETCF.Windows.Forms.IMessageFilter.PreFilterMessage
If m.HWnd.Equals(pHWnd) Then
Select Case m.Msg
Case Window.Messages.WM_KEYDOWN
'myKPfunc.Invoke(New KeyPressEventArgs(m.WParam.ToInt32), _
'm.LParam.ToInt32)
myKPfunc.Invoke(New KeyPressEventArgs(Chr(m.Msg)), _
m.LParam.ToInt32)
PreFilterMessage = True
End Select
End If
End Function
I keep getting an error on myKPfunc.
I think it's because I don't have the correct perameter for
KeyPressEventArgs.
Any ideas?
Thanks!
Public Function PreFilterMessage(ByRef m As _
Microsoft.WindowsCE.Forms.Message) As Boolean Implements _
OpenNETCF.Windows.Forms.IMessageFilter.PreFilterMessage
If m.HWnd.Equals(pHWnd) Then
Select Case m.Msg
Case Window.Messages.WM_KEYDOWN
'myKPfunc.Invoke(New KeyPressEventArgs(m.WParam.ToInt32), _
'm.LParam.ToInt32)
myKPfunc.Invoke(New KeyPressEventArgs(Chr(m.Msg)), _
m.LParam.ToInt32)
PreFilterMessage = True
End Select
End If
End Function
I keep getting an error on myKPfunc.
I think it's because I don't have the correct perameter for
KeyPressEventArgs.
Any ideas?
Thanks!