NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

TextBoxBase.HideSelection

Gets or sets a value indicating whether the selected text in the text box control remains highlighted when the control loses focus.

[Visual Basic]
Public Property HideSelection As Boolean
[C#]
public bool HideSelection {get; set;}
[C++]
public: __property bool get_HideSelection();
public: __property void set_HideSelection(bool);
[JScript]
public function get HideSelection() : Boolean;
public function set HideSelection(Boolean);

Property Value

true if the selected text does not appear highlighted when the text box control loses focus; false if the selected text remains highlighted when the text box control loses focus. The default is true.

Remarks

You can use this property to keep text highlighted in a text box control while another form or a dialog box has focus, such as a spelling checker dialog box.

See Also

TextBoxBase Class | TextBoxBase Members | System.WinForms Namespace