blah blah blah is here! blah blah » Close

up0down
link

I want to press tab key programatically. i used this code

private void BrowserPage_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{

webBrowser.Select();
webBrowser.Focus();
PreviewKeyDownEventArgs ee = new PreviewKeyDownEventArgs(Keys.Tab);
webBrowser_PreviewKeyDown(sen, ee);

}
but in web browser the focus is not moving to next control..

last answered one month ago

1 answers

up0down
link

Try this:

http://msdn.microsoft.com/en-us/library/system.windows.forms.sendkeys.aspx

Feedback