TextInputPanel.InPlaceVisibleOnFocus Property
Gets or sets a value that indicates whether the Tablet PC Input Panel is displayed automatically when the window to which it is attached gets focus.
Namespace: Microsoft.Ink.TextInput
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
Syntax
'Declaration
Public Property InPlaceVisibleOnFocus As Boolean
'Usage
Dim instance As TextInputPanel
Dim value As Boolean
value = instance.InPlaceVisibleOnFocus
instance.InPlaceVisibleOnFocus = value
public bool InPlaceVisibleOnFocus { get; set; }
public:
property bool InPlaceVisibleOnFocus {
bool get ();
void set (bool value);
}
public function get InPlaceVisibleOnFocus () : boolean
public function set InPlaceVisibleOnFocus (value : boolean)
Property Value
Type: System.Boolean
true if the Tablet PC Input Panel is displayed automatically when the window to which it is attached gets focus; otherwise, false.
Remarks
If InPlaceVisibleOnFocus is set to true for a control, then when that the control gains focus the Tablet PC Input Panel automatically shows in the default InPlaceState provided all other conditions concur.
It is possible to prevent the in-place Input Panel and the Input Panel Icon from appearing by setting the InPlaceVisibleOnFocus to false. Setting it to true reverts it to the system default of appearing when possible, provided it has not been disabled by the user or Group Policy. This option is useful for applications that include custom text entry solutions as an alternative to the Input Panel.
The default value is true.
Examples
The following example demonstrates the use of InPlaceVisibleOnFocus. The tip object is an instance of TextInputPanel. The InPlaceVisibleOnFocus value is used in setting the TextBox.Text property of a TextBox, outputTextBox.
outputTextBox.Text += "In Place Visible On Focus is " + IIf(tip.InPlaceVisibleOnFocus, "Visible", "Not Visible") + Environment.NewLine 'TODO: For performance reasons this should be changed to nested IF statements
outputTextBox.Text += "In Place Visible On Focus is " + (tip.InPlaceVisibleOnFocus ? "Visible" : "Not Visible") + Environment.NewLine;
Platforms
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 3.0