Alex Gordon
Alex Gordon

Reputation: 60691

how do i sendkeys DOWN ARROW?

in vb.net i want to do a sendkeys for the down arrow. what is the code?

Upvotes: 6

Views: 45689

Answers (2)

mschmidt42
mschmidt42

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

Marc
Marc

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

Related Questions