Esempio n. 1
0
 /// <summary>
 /// Handles the KeyPressed event of the _cNameText control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="KeyEventArgs"/> instance containing the event data.</param>
 void cNameText_KeyPressed(object sender, KeyEventArgs e)
 {
     // Tab to the next control
     if (e.Code == KeyCode.Tab)
     {
         _cPasswordText.SetFocus();
         _cPasswordText.CursorLinePosition = _cPasswordText.Text.Length;
     }
 }