winform窗体弹出时,光标默认显示在指定的输入框内

private void Form1_Paint(object sender, PaintEventArgs e)
        { this.textBox1.SelectAll();
            this.textBox1.Focus();

        }

 

posted @ 2015-05-28 08:43  走路到纽约  阅读(1523)  评论(0编辑  收藏  举报