M
MS Newsgroups
Hi,
I would like to capture when a user presses F5 in my Windows form
application, but the keypress event does not seem to fire when a function
key is pressed, Is there another way of doing this ?
This code works fine for all keys except function keys
Protected Overrides Sub OnKeyPress(ByVal e As
System.Windows.Forms.KeyPressEventArgs)
Dim myKey As Char
myKey = e.KeyChar
MsgBox(myKey.ToString)
End Sub
Regards
Niclas
I would like to capture when a user presses F5 in my Windows form
application, but the keypress event does not seem to fire when a function
key is pressed, Is there another way of doing this ?
This code works fine for all keys except function keys
Protected Overrides Sub OnKeyPress(ByVal e As
System.Windows.Forms.KeyPressEventArgs)
Dim myKey As Char
myKey = e.KeyChar
MsgBox(myKey.ToString)
End Sub
Regards
Niclas