Edit

Share via


FormControl.HostTranslatesAcceleratorsFirst Property

Definition

Gets or sets a value that indicates the order in which keystrokes are sent to the control represented by the FormControl object or to the application hosting the control.

public:
 property bool HostTranslatesAcceleratorsFirst { bool get(); void set(bool value); };
public bool HostTranslatesAcceleratorsFirst { get; set; }
member this.HostTranslatesAcceleratorsFirst : bool with get, set
Public Property HostTranslatesAcceleratorsFirst As Boolean

Property Value

true to send keystrokes to the host application first; false to send keystrokes to the control first. The default setting is false.

Remarks

When the HostTranslatesAcceleratorsFirst property is set to false, if the control handles the keystrokes, the host application will not have an opportunity to process the keystrokes. And vice versa, when HostTranslatesAcceleratorsFirst is set to true, if the host application handles the keystrokes, the control will not have an opportunity to process the keystrokes.

Applies to