WinForm程序设计-将光标定位到一个文本框
版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://chenxing.blog.51cto.com/240526/76277 |
在文本框的 KeyPress事件中
private void txt_userid_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
{ if(e.KeyChar==13) { //将光标定位到下一个文件框 txt_password.Focus(); } } ![]() 本文出自 “半瓶香油-好男人时来运转” 博客,请务必保留此出处http://chenxing.blog.51cto.com/240526/76277 本文出自 51CTO.COM技术博客 |



晨星
博客统计信息
热门文章
最新评论
友情链接

