textbox文本键盘全选

        private void textBox1_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.Modifiers == Keys.Control && e.KeyCode == Keys.A)
            {
                ((TextBox)sender).SelectAll();
            }  
        }

posted @ 2014-02-25 14:54  程序员徐坤  阅读(290)  评论(0编辑  收藏  举报