예제 #1
0
        static void TextBox_GotFocus(object sender, EventArgs e)
        {
            TextBoxBase tb = (sender as TextBoxBase);

            if (tb != null && tb.GetSTDAction("GotFocus"))
            {
                tb.SelectionStart  = 0;
                tb.SelectionLength = tb.Text.Length;
            }
        }