All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
ASP.NET,2.0,GridView控件应用模版_[Asp.Net教程]
visual c++ MFC调试宏
ASP.NET,Forums,页面模型分析_.net资料_编程技术
实现在页面中单击按钮关闭页面_[Asp.Net教程]
asp.net2.0登陆控件之登录控件典型应用
通过ADO.NET访问数据库,教程与实例_[Asp.Net教程]
很有用的文件操作php函数_[PHP教程]
用PHP简易实现中文分词_[PHP教程]
PHP截取指定长度的文字_[PHP教程]
ASP.NET教程:AccessDataSource的使用_[Asp.Net教程]
Reading number is top 10 pictures
Average female college students3
Fierce! China's special forces training the devil2
避免防盗门的猫眼变成钥匙眼
这两天,中国人民到处都可以“看海”了
中国女孩大胆自拍,显露完美身材3
YangYuYing and ZhengShaoQiu dance on the generous come interest dye-in-the-wood
Sora aoi mirror memorial classics1
Female model behind the bitterness, often being overcharged4
From China fortress sora aoi5
Fat bird to fly
Download software ranking
WebService在.NET中的实战应用教学视频 → 第1集
linux高级编程
变速齿轮3.26
Ashlynn Video4
双旗镇刀客A
Tram sex maniac 2 (H) rar bag16
Call Of Duty2
The Bermuda triangle3
Tram sex maniac 2 (H) rar bag15
都市狐狸姑娘传
delv published in(发表于) 2014/1/6 9:06:03 Edit(编辑)
C#中Windows通用的回车转Tab方法_[Asp.Net教程]_0

C#中Windows通用的回车转Tab方法_[Asp.Net教程]_0

C#中Windows通用的回车转Tab方法_[Asp.Net教程]

原来一直是为每个文本框的KeyPress增加:

if(e.KeyChar = '\r') SendKeys.Send("{TAB}");


  最近想想,其实有更简单的方法,把Form的KeyPreView设为true,然后在Form的KeyPress中增加下列代码即可:


if (e.KeyChar == '\r')
this.SelectNextControl(this.ActiveControl, true, true, true, true);


来源:网络







添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.