FormControl.HostTranslatesAcceleratorsFirst Property
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.
Namespace: Microsoft.Office.InfoPath
Assembly: Microsoft.Office.InfoPath.FormControl (in Microsoft.Office.InfoPath.FormControl.dll)
Syntax
'Declaration
Public Property HostTranslatesAcceleratorsFirst As Boolean
Get
Set
'Usage
Dim instance As FormControl
Dim value As Boolean
value = instance.HostTranslatesAcceleratorsFirst
instance.HostTranslatesAcceleratorsFirst = value
public bool HostTranslatesAcceleratorsFirst { get; set; }
Property Value
Type: System.Boolean
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.