Provides data for the Control.KeyDown or Control.KeyUp event.
https://msdn.microsoft.com/en-us/library/system.windows.forms.keyeventargs(v=vs.110).aspx
Inheritance: System.EventArgs
Beispiel #1
0
 /// <summary>
 /// This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
 /// Raises the <see cref="OnKeyUp"/> event.
 /// </summary>
 /// <param name="kevent">A <see cref="KeyEventArgs"/> that contains the event data.</param>
 /// <remarks>
 /// http://msdn.microsoft.com/en-us/library/f6df3w7z(v=vs.110).aspx
 /// </remarks>
 protected override void OnKeyUp(KeyEventArgs kevent)
 {
     base.OnKeyUp(kevent);
 }
Beispiel #2
0
 /// <summary>
 /// Raises the <see cref="KeyUp"/> event.
 /// </summary>
 /// <param name="e">A <see cref="KeyEventArgs"/> that contains the event data.</param>
 /// <remarks>
 /// http://msdn.microsoft.com/en-us/library/system.windows.forms.control.onkeyup(v=vs.110).aspx
 /// </remarks>
 protected virtual void OnKeyUp(KeyEventArgs e)
 {
     var handler = KeyUp;
     handler?.Invoke(this, e);
 }