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);
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.
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.
TextBoxBase Class | TextBoxBase Members | System.WinForms Namespace