I think this may be because the focus is set before the page is fully loaded. Try the following:
private void Go(string url) { webBrowser1.Navigate(url); webBrowser1.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(webBrowser1_DocumentCompleted); } void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { webBrowser1.Document.Body.Focus(); }
You can also automatically select focus on the first link directly by receiving the HtmlElement that first link.
If the above does not work, you can check other parts of your code to see if something else captures the focus. Try searching for Select , Focus and ActiveControl in your code.
Fun mun pieng
source share