Share via


KeyboardEventArgs.Code Property

Definition

Holds a string that identifies the physical key being pressed. The value is not affected by the current keyboard layout or modifier state, so a particular key will always return the same value.

public:
 property System::String ^ Code { System::String ^ get(); void set(System::String ^ value); };
public string Code { get; set; }
member this.Code : string with get, set
Public Property Code As String

Property Value

Applies to