Groups | Blog | Home
all groups > dotnet interop > october 2005 >

dotnet interop : AxSHDocVw.AxWebBrowser and Window Activation issue


Robert Jordan
10/12/2005 12:00:00 AM
[quoted text, click to view]

In a DocumentComplete event handler you should call

axBrowser.DoVerb(-4);

-4 stands for the OLE verb UIACTIVATE.
axBrowser is AxWebBrowser instance.

Kjeld
10/12/2005 6:49:04 AM
We have created a MDI application that uses a AxSHDocVw.AxWebBrowser
component on one of the child windows.

As soon as this child window is created, none of the open MDI child windows
is activated if clicked upon, except for when the window border or title bar
is clicked.

So the problem is: AxSHDocVw.AxWebBrowser if contained by a MDI child
window, prevents child windows from being activated properly.

It is even possible to have two active MDI child windows!

I could not find a bug report in support database. Am I doing something
wrong or is this truly a bug?

Kjeld
10/12/2005 10:35:02 PM
Hello Robert,

Thanks for your input.
Unfortunately it doesn't solve my problem.
As soon as my child form is created, containing the web browser control, the
problem arises. Loading a document or not doesn't effect the isssue.

Hopefully there is another solution / workaround.

[quoted text, click to view]
AddThis Social Bookmark Button