/// <summary>
/// 回车切换控件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void FrmDataCheckRule_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar ==)
{
if ((ActiveControl is TextBoxX))
{
//textBoxX可多行操作时不跳转
if (!(ActiveControl as TextBoxX).Multiline)
System.Windows.Forms.SendKeys.Send("{tab}");
}
else
System.Windows.Forms.SendKeys.Send("{tab}"); // MessageBox.Show(ActiveControl.Name);
}
}

加代码前

this.KeyPreview = true;

最新文章

  1. Algorithm | Binary Search
  2. 做Adsense的一些经验
  3. java: system.gc()和垃圾回收机制finalize
  4. 关于android中线性布局的layout_gravity属性
  5. Ubuntu使用tcpdump工具
  6. PHP中的设计模式:单例模式(译)
  7. Linux Shell编程(10)——引用变量
  8. Redmine配置
  9. Sum Root to Leaf Numbers——LeetCode
  10. css中的7中属性选择器
  11. LoadImage()使用
  12. org.hibernate.MappingException: Could not determine type for: java.util.List, at table: user, for...
  13. SQL Server不能通过外部IP访问,解决方法
  14. Android Studio开发常见问题
  15. [HEOI2015]小Z的房间
  16. v4v7升级到androidx过程
  17. ArcGIS Server缓存清理
  18. Docker入门6------生产力工具rancher
  19. 发布webservice之后调用不通
  20. HNOI2017礼物

热门文章

  1. 【Java多线程系列八】volatile和ThreadLocal
  2. Python django tests
  3. tdom中selectNodes的使用
  4. 关于软件IntelliJ IDEA的使用技巧(三)
  5. CF1220F
  6. 基于Linux平台病毒Wirenet.c解析
  7. mysql的一些语法
  8. NFS(网络文件系统)
  9. 36.两个链表的第一个公共结点(python)
  10. python 数据的存储