Check Rick's web site for an article about Web Browser control loosing focus and solution for that.
Also I would advise against incorporating Web Browser control into a complex form or you'll be hunting the problems for a long time.
>New day, new problem. I have an Active X IE browser control saved as a class and:
>.Navigate([About:Blank])
>.Document.DesignMode=[on]
>(other code left out here)
>
>If I drop it on a form and run the form it works. You can enter text, paste text with Ctrl+V and do the other normal things. I have a large program that starts with a form set and then creates all objects in the form from code with a ton of DEFINE CLASS...
>That has been working great for some time. However, when I add the IE browser control object from the class that works on a normal form the following things happen:
>You can CTRL+V to paste text.
>You can use shift + DownArrow to mark text and CTRL+B will bold the highlighted text.
>BUT
>You cannot mark text with the mouse.
>You cannot enter text with the keyboard.
>It's like the object is disabled but you can do the few things above.
>
>Signed,
>confused.
--sb--