[Gtk-sharp-list] Gecko Reload Grabs Focus

Phillip Dyer p85dyer at gmail.com
Wed Jan 31 13:46:03 EST 2007


Hello,

    I've noticed a strange bit of behaviour that occurs when I called 
.Reload(3) on the Gecko WebControl. The application is designed to run 
in the background and every 5 minutes or so to refresh the content in 
the window off of our server. To do this I've implemented a thread that 
uses :

Application.Invoke(BrowserRefreshEvent);

and in the eventhandler I have:

BrowserWindow.Reload(3);

    Now the problem I've noticed is that if the application is running 
in the background, and it calls BrowserWindow.Reload(3) it steals the 
focus from whatever I'm currently working on. I've attempted:

    BrowserWindow.CanFocus = false;

    but that doesn't seem to prevent the problem, does anyone have any 
ideas on how to stop that behaviour?

-Phil


More information about the Gtk-sharp-list mailing list