【问题标题】:how do i sendkeys DOWN ARROW?我如何发送键向下箭头?
【发布时间】:2009-08-30 20:33:15
【问题描述】:

在 vb.net 中,我想为向下箭头做一个发送键。密码是什么?

【问题讨论】:

    标签: vb.net winforms


    【解决方案1】:
    ' make sure you have this at the top:
    Imports System.Windows.Forms.SendKeys
    
    
    ' and then you can use this:
    SendKeys.Send("{DOWN}")
    

    点击此处获取有关 VB.Net 中 SendKeys 的更多示例和详细信息 http://msdn.microsoft.com/en-us/library/system.windows.forms.sendkeys(VS.71).aspx

    【讨论】:

      【解决方案2】:

      虽然我不会质疑原因,但您可以看到 this article on MSDN 说您发送“{DOWN}”

      具体来说:

      SendKeys.Send("{DOWN}")
      

      【讨论】: