How do I allow select all in my multi-lined TextBox?
It seems weird to me that there would not be a way to do this; there should be something in the framework out of the box.
How do I allow select all in my multi-lined TextBox?
It seems weird to me that there would not be a way to do this; there should be something in the framework out of the box.
How about textbox1.SelectAll()
?
You can also use
textbox1..Select(0, textbox1.Text.Length);
and turn property HideSelection to False.
Try the SelectAll method (actually located on TextBoxBase).
TextBoxBase b = GetTheTextBox();
b.SelectAll();