webBrowser control takes focus

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an IE web control on a form that rotates the stats of the call center
in it. When a new page is loaded it takes the focus away from the other
textboxes on the form, even if a user is typing in them.

Is there anyway to keep the control from getting focus?
 
The browser control a completed event.. ( DocumentComplete). In this event
you can set the focus back to any control ...

VJ
 
Since the webcontrol is getting the focus after it's loaded the new page I
guess I can trap what textbox has the focus on the 'beforeNavigate' event and
then once it's complete I can send the focus back to the texbox.

I'll have to do some test to make sure it doesnt dis-rupt their workflow
when their typing.

Thanks VJ
 
What you could do is do the loading in a background thread, so it does not
interrupt user typing...

Vijay
 
Back
Top