J
John Baro
I have a textbox where I wish the text to be selected when the user clicks
on the textbox.
Textbox.SelectAll();
or
Textbox.SelectionStart = 0;
Textbox.SelectionLength = Textbox.Text.Length;
Neither work if the user clicks.
Both work if the user tabs
or I set focus in code.

JB
The greatest arrogance of humankind was to believe they were unique.
on the textbox.
Textbox.SelectAll();
or
Textbox.SelectionStart = 0;
Textbox.SelectionLength = Textbox.Text.Length;
Neither work if the user clicks.
Both work if the user tabs
or I set focus in code.

JB
The greatest arrogance of humankind was to believe they were unique.