任何人都可以在vb/C#.net中提供SendKeys的示例吗? [英] Can anybody give an example for SendKeys in vb/C#.net ?
本文介绍了任何人都可以在vb/C#.net中提供SendKeys的示例吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何人都可以在vb/C#.net中提供SendKeys示例吗?
Can anybody give an example for SendKeys in vb/C#.net ?
推荐答案
您在运行登录表单时使用此代码,输入您的用户名并按Enter键,焦点将转到密码文本框(即):输入键的行为就像Tab键一样,当我们开发应用程序时,它会多次显示许多文本框.
hi use this code while u run a login form that time u enter username and press enter key the focus goes to password text box (ie): enter key act like tab key it is useful for as many times when we develop a application many text boxes
If Asc(e.KeyChar) = 13 Then
SendKeys.Send("{TAB}")
End If
SendKeys.Send("{TAB})
http://www.java2s.com/Tutorial/VB/0260__GUI/SendKeys.htm
http://www.java2s.com/Tutorial/VB/0220__Event/决定是否由用户按下Enterkey.htm
http://www.java2s.com/Code/VB/GUI/UsingSendKeystosimulatekeypress.htm
http://msdn.microsoft. com/en-us/library/system.windows.forms.sendkeys.send%28v = vs.71%29.aspx
http://www.dreamincode.net/forums/topic/60445-window -button-key-on-sendkeyssend/
SendKeys.Send("{TAB}")
http://www.java2s.com/Tutorial/VB/0260__GUI/SendKeys.htm
http://www.java2s.com/Tutorial/VB/0220__Event/DeterminewhetheruserpressedEnterkey.htm
http://www.java2s.com/Code/VB/GUI/UsingSendKeystosimulatekeypress.htm
http://msdn.microsoft.com/en-us/library/system.windows.forms.sendkeys.send%28v=vs.71%29.aspx
http://www.dreamincode.net/forums/topic/60445-window-button-key-on-sendkeyssend/
这篇关于任何人都可以在vb/C#.net中提供SendKeys的示例吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文