Version

KeyCodeAlternate Property

Get/Set the text for this item
Syntax
'Declaration
 
Public Property KeyCodeAlternate As Keys
public Keys KeyCodeAlternate {get; set;}
Example
Each Button on the calculator can have two keys asigned to it. In this sample we assign the Enter key, and space bar to the '=' button.

Private Sub SetupKeys()
    
    Me.UltraCalculatorDropDown1.Buttons("=").KeyCode = Keys.Enter
    Me.UltraCalculatorDropDown1.Buttons("=").KeyCodeAlternate = Keys.Space

End Sub
private void SetupKeys()
{
	
	this.ultraCalculatorDropDown1.Buttons["="].KeyCode = Keys.Enter;
	this.ultraCalculatorDropDown1.Buttons["="].KeyCodeAlternate = Keys.Space;

}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also