vb.net 我如何发送键向下箭头?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1354839/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
how do i sendkeys DOWN ARROW?
提问by l--''''''---------''''''''''''
in vb.net i want to do a sendkeys for the down arrow. what is the code?
在 vb.net 我想为向下箭头做一个发送键。代码是什么?
回答by mschmidt42
' make sure you have this at the top:
Imports System.Windows.Forms.SendKeys
' and then you can use this:
SendKeys.Send("{DOWN}")
Go here for more examples and detailed information about SendKeys in VB.Net http://msdn.microsoft.com/en-us/library/system.windows.forms.sendkeys(VS.71).aspx
转到此处获取有关 VB.Net 中 SendKeys 的更多示例和详细信息 http://msdn.microsoft.com/en-us/library/system.windows.forms.sendkeys(VS.71).aspx
回答by Marc
While I won't question why, you can see this article on MSDNsays you send "{DOWN}"
虽然我不会质疑为什么,但您可以在 MSDN 上看到这篇文章说您发送“{DOWN}”
Specifically:
具体来说:
SendKeys.Send("{DOWN}")