I tried this code:
Imports System.Windows.Forms
Public Class Form1
Private Sub TextBox2_KeyDown(ByVal sender As System.Object, _
ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox2.KeyDown
If (e.KeyCode = System.Windows.Forms.Keys.Down) Then
SendKeys("{tab}")
End If
End Sub
End Class
It says that "SendKeys is not declared".
I tried to add Imports System.Windows.Forms.SendKeys
,but it says that this cannot be found.
When I search on the Internet, everyone is suggesting to do it exactly like this. So why doesn't it work for me? I am using .NET 3.5 Compact Framework on Windows 7 Professional, with the target platform Windows Mobile 6 Professional SDK.