码迷,mamicode.com
首页 > Windows程序 > 详细

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

时间:2015-05-28 09:21:52      阅读:232      评论:0      收藏:0      [点我收藏+]

标签:

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

        }

 

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

标签:

原文地址:http://www.cnblogs.com/huacw/p/4534982.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!