Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Lost focus problem in vb.net2k5 1

Status
Not open for further replies.

ty1122

Programmer
Jan 20, 2005
16
US
I have a webbrowser in a form. Everytime I leave this form, i.e. switch to another window or program, the webbrowser lost its focus. When i type things the letters don't show up in the webpage.
But when i leave this form again (open another window again) and come back, i get my focus back. I can type as before.
I wonder if i can keep its focus all the time or there is a way to reset focus during the first time i switch back. I know how to set focus but i don't know which event i should put in.

Thanks for your help,

Tai
 
It works for switching between windows!
But after i minimize and then restore it, activate event doesnt help me anymore. Any other hints?

Thanks,

Tai
 
nevermind i found the resize event to be the right one.
Thanks for your help Christiaan!

Tai
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top