VB.Net Web browser component steals focus

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Ent

Josiah
Thread Starter
Retired Trusted Advisor
Joined
Apr 11, 2009
Messages
5,467
I'm working on a vb.net project that involves a Web browser component to preview the results of text I put in a text box above it (updating on every key press). It works fine initially on running the program, but if at any point I click within the area of the browser component it starts misbehaving. Basically from that point on the browser steals focus every time I press a key, which makes it pretty much impossible to type. I can set the web browser to pass focus back to the main text box on the previewkeydown event event, but that still requires that I press every button twice to type in the text box!

From a lot of googling I've found that this is a known issue, but haven't found any better solution than the flawed one I mentioned of passing back control. Does anyone have any experience with this problem, or any ideas?

PS my solution shouldn't ever require that the window of the web control be clicked, but does need access to the scroll bars (which cause the same issue). If there's a way to stop the control being clicked in the first place (and an alternative way of scrolling up and down) I'm all ears.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Members online

Top