D
**Developer**
I have a usercontrol that contains the following.
To my surprise the form containing this control get KeyUp events.
Help says that for KeyPress setting e.Handled = True suppresses KeyPress
events but say very little about KeyUp.
What does setting to Handled do?
In the Control I also continue to get KeyPress and KeyUp events.
In them I also have the same code to set e.Handled = True
Thanks
Protected Overrides Sub OnKeyUp(ByVal e As
System.Windows.Forms.KeyEventArgs)
If mReadOnly Then
e.Handled = True
Else
snip...
End If
MyBase.OnKeyUp(e)
End Sub
To my surprise the form containing this control get KeyUp events.
Help says that for KeyPress setting e.Handled = True suppresses KeyPress
events but say very little about KeyUp.
What does setting to Handled do?
In the Control I also continue to get KeyPress and KeyUp events.
In them I also have the same code to set e.Handled = True
Thanks
Protected Overrides Sub OnKeyUp(ByVal e As
System.Windows.Forms.KeyEventArgs)
If mReadOnly Then
e.Handled = True
Else
snip...
End If
MyBase.OnKeyUp(e)
End Sub