13 December 2012

Select All string in TextBox using C#.Net

Copy and Paste this Code in your TextBox Keydown Event

if ((e.Control == true) && (e.KeyCode == Keys.A))
{
textBox1.SelectAll();
}

No comments: