c# WinForm加载焦点

时间:2014-12-01 15:38:32   收藏:0   阅读:218

两种方法:

1 在Load中设置 
this.ActiveControl = this.textBox;

2 this.textBox.Focus(); 
但在Form_Load设置会无效,可在Form_Paint()中设置.bubuko.com,布布扣

原文:http://www.cnblogs.com/eastson/p/4135110.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!