or
Public Sub New() ' This call is required by the designer. InitializeComponent() ' Add any initialization after the InitializeComponent() call. AddHandler txtMyCommandTextBox.KeyDown, AddressOf txtMyCommandTextBox_KeyDown AddHandler txtMyCommandTextBox.KeyPress, AddressOf txtMyCommandTextBox_KeyPress AddHandler txtMyCommandTextBox.KeyUp, AddressOf txtMyCommandTextBox_KeyUpEnd SubPrivate Sub txtMyCommandTextBox_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) RadMessageBox.Show(e.KeyCode)End SubPrivate Sub txtMyCommandTextBox_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) RadMessageBox.Show(e.KeyChar)End SubPrivate Sub txtMyCommandTextBox_KeyUp(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) RadMessageBox.Show(e.KeyCode)End SubDim descriptor As New GroupDescriptor() descriptor.GroupNames.Add("Country", ListSortDirection.Ascending) Me.RadGridView1.GroupDescriptors.Add(descriptor)