Whenever I set focus to a Textbox in WinForms (.NET 3.5) the entire text is selected. Does not matter if I have MultiLine set to true or false. Seems to be the exact reverse of what this user is seeing: http://stackoverflow.com/questions/97459/automatically-select-all-text-on-focus-in-winforms-textbox
I have tried to do:
private void Editor_Load(object sender, EventArgs e)
{
//form load event
txtName.SelectedText = String.Empty; // has no effect
}
Is there another property I can set to stop this annoying behavior?
I just noticed this works:
txtName.Select(0,0);
txtScript.Select(0,0);
But do I really need to call select() on all my textboxes?