WebBrowser prevent stealing focus in C#
Posted
by Maciej
on Stack Overflow
See other posts from Stack Overflow
or by Maciej
Published on 2010-03-22T08:23:50Z
Indexed on
2010/03/22
8:41 UTC
Read the original article
Hit count: 499
I'm using webBrowser.Navigate(url) control to display page.
I noticed this action steals focus from current control (grid) and than I have problem to focus grid back (tired myGrid.Focus, .Select etc...)
This is really annoying behaviour of browser...
Does anyone knows how to prevent focus stealing by Browser or (if not) hot to force to focus control back ?
EDIT:
I've also tried webBrowser.DocumentCompleted event to focus back to grid
© Stack Overflow or respective owner