How to make text in WinForms TextBox unselected without disabling it?
Is it possible to make the text in the TextBox unselected without disabling the TextBox? It is a RichTextBox and I need its formatting and selection functions. I cannot turn it off because I want to handle the MouseMove and MouseDown events.
So far I've been thinking about disabling the Text field and putting a panel on top of it that delegates its events to the text field handlers, but I can't make the panel transparent so that it hides the text field.
Thank.
+1
source to share
3 answers
What do I do with .Enter or .GotFocus events to clear my selections?
You can see the opposite of what you wanted in Automatically select all focus text in WinForms TextBox .
+3
source to share