在Winforms中使用getnextcontrol [英] using getnextcontrol in winforms

查看:148
本文介绍了在Winforms中使用getnextcontrol的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

海,
我想获得一些示例,例如,使用c#

Hai,
I would like to get some examples for using getnextcontrol in winform using c#

推荐答案

在winform中使用getnextcontrol.在Enter键上导航
For eg. navigate on Enter key press
if (keydata.Char == (char)13)  // Enter is pressed
this.GetNextControl((Control)sender, true).Focus();



http://msdn.microsoft.com /en-us/library/system.windows.forms.control.getnextcontrol(v=VS.90).aspx [



http://msdn.microsoft.com/en-us/library/system.windows.forms.control.getnextcontrol(v=VS.90).aspx[^]


这篇关于在Winforms中使用getnextcontrol的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆