Reputation: 60691
in vb.net i want to do a sendkeys for the down arrow. what is the code?
Upvotes: 6
Views: 45689
Reputation: 1095
' 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
Upvotes: 19
Reputation: 9354
While I won't question why, you can see this article on MSDN says you send "{DOWN}"
Specifically:
SendKeys.Send("{DOWN}")
Upvotes: 5