need code to click on tab and enter key automaticly

im just made a webbrowser on cisual studio 2008 to enter automaticly to a link but me i want the webbrowser to

enter to the link and wait 10 sec then click on Tab key then click on ENTER key Then ENTER

key again , then wait 10 sec and close the webbrowser automaticly

i want the clicks to be inside the webbrowser for exemple i open the webbrowser the open a auther program for exemple i open a calculator i dont want the clicks to be on the calculator but i want it to be on the webbrowser

Can you paste HTML source code from a webpage you are trying to use this for?
You might be able to accomplish this by not using SendKeys and just filling out values in certain TextBoxes, then press the Submit Button.

See if this helps.1 WebBrowser(navigating to your webpage with the adf.ly AD)

Public Class Form1
Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
'// Since the link you need to skip the AD is located in the <head> section of the webpage, you need to only get that source code.
Dim sAD_page As String = WebBrowser1.Document.GetElementsByTagName("head").Item(0).InnerHtml '// get <head> HTML content.
If sAD_page.Contains("function showSkip") Then '// check content for the "showSkip" JavaScript Function.
skipAd(sAD_page, WebBrowser1) '// send source code and which WebBrowser used to skip the AD.
End If
End Sub
Private Sub skipAd(ByVal htmlSourceCode As String, ByVal selectedWebBrowser As WebBrowser)
With htmlSourceCode '// shorten code.
Dim iIndex As Integer = .IndexOf("function showSkip") '// locate the JavaScript Function.
iIndex = .IndexOf("http:", iIndex) '// locate the URL in the Function.
htmlSourceCode = .Substring(iIndex, .IndexOf("'", iIndex) - iIndex) '// extract only URL.
selectedWebBrowser.Navigate(htmlSourceCode) '// Navigate to extracted Link from the JavaScript Function of "function showSkip".
End With
End Sub
End Class

Give the webpage a few seconds to navigate to your Skip Ad Button URL.