This information allows you to determine, for example, if an upper- or lowercase character was pressed. Like the Modifiers Key Event Args property, it is of type Keys.
It also tells you if any modifier keys (Alt, Ctrl, or Shift) were pressed and in which combination. The Modifiers, Key Code and Key Data properties are of type Keys.
The Key Down and Key Press events may seem somewhat redundant, but they fire at different points in the keyboard event stream and contain different information in the Event Args object.
The Key Event Args event data associated with the Key Down and Key Up events provides low-level information about the keystroke, listed in Table 4-6.
New() 'This call is required by the Windows Form Designer.
Text Box Friend With Events txt Last Name As System.
Run(form1) End Sub End Class Public Class Form1 Inherits System. Protected Overloads Overrides Sub Dispose(By Val disposing As Boolean) If disposing Then If Not (components Is Nothing) Then components. Dispose(disposing) End Sub 'Required by the Windows Form Designer Private components As System. IContainer 'NOTE: The following procedure is required by the Windows Form Designer 'It can be modified using the Windows Form Designer.