// Please use the following namespace
// using System.Windows.Forms;
// using GrapeCity.Win.Editors;
public void GetShortcutKeySettings()
{
// Creates an instace of the GcTextBox control.
GcTextBox gcTextBox1 = new GcTextBox();
// Creates an instace of the GcShortcut component.
GcShortcut gcShortcut1 = new GcShortcut();
// Adds a new shortcut key and shortcut action to the gcTextBox.
gcShortcut1.GetShortcuts(gcTextBox1).Add(Keys.Enter, gcShortcut1, "NextControl");
}
' Please use the following namespace
' Imports System.Windows.Forms;
' Imports GrapeCity.Win.Editors;
Public Sub GetShortcutKeySettings()
' Creates an instace of the GcTextBox control.
Dim gcTextBox1 As New GcTextBox()
' Creates an instace of the GcShortcut component.
Dim gcShortcut1 As New GcShortcut()
' Adds a new shortcut key and shortcut action to the gcTextBox.
gcShortcut1.GetShortcuts(gcTextBox1).Add(Keys.Enter, gcShortcut1, "NextControl")
End Sub