// Please use the following namespace
// using System.Windows.Forms;
// using GrapeCity.Win.Editors;
public void SetExitKeySettings()
{
// Create an instance of a GcTextBox control.
GcTextBox gcTextBox1 = new GcTextBox();
// Set the maximum length limit.
gcTextBox1.MaxLength = 10;
// Allow the input focus move to next control by Left or Right key.
gcTextBox1.ExitOnLeftRightKey = ExitOnLeftRightKey.Both;
// Allow the input focus move to next control by pressing char key when the context is full about the capacity.
gcTextBox1.ExitOnLastChar = true;
}
' Please use the following namespace
' Imports System.Windows.Forms;
' Imports GrapeCity.Win.Editors;
Public Sub SetExitKeySettings()
' Create an instance of a GcTextBox control.
Dim gcTextBox1 As New GcTextBox()
' Set the maximum length limit.
gcTextBox1.MaxLength = 10
' Allow the input focus move to next control by Left or Right key.
gcTextBox1.ExitOnLeftRightKey = ExitOnLeftRightKey.Both
' Allow the input focus move to next control by pressing char key when the context is full about the capacity.
gcTextBox1.ExitOnLastChar = True
End Sub