R
Rlrcstr
How can you detect when an arrow key gets pressed? Doesn't seem to trigger
a KeyPress or KeyDown event. Thanks.
Jerry
a KeyPress or KeyDown event. Thanks.
Jerry
Some Guy said:Yes, not hard. You don't even have to create a library to do it.
Public Class UserControl1
Inherits System.Windows.Forms.UserControl
Public Sub New()
Mybase.New()
End Sub
Protected Overrides Function IsInputKey(ByVal keyData As
System.Windows.Forms.Keys) As Boolean
IsInputKey = True
End Function
End Class
Your form:
Dim Withevents myControl as UserControl1
mycontrol.Parent = '-- Whatever
myControl.Location = '-- Wherever
myControl.Size = '-- Whatever