Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

WebBrowser: How navigate always in the same windows?

0 views
Skip to first unread message

Giuseppe Pezzella

unread,
Feb 19, 2009, 4:32:01 AM2/19/09
to
Dera Friends

I have a basic application with WebBrowser1 control add on Form1.

I need to have navigation always into my program but some links open an
external IExplorer windows.

How I can do it?

Thanks

quyadong

unread,
Mar 8, 2009, 1:38:01 AM3/8/09
to
Sorry, I found the following codes in MSDN:

HRESULT hr = pBrowser2->Navigate(bstrURL, &vEmpty, &vEmpty, &vEmpty,
&vEmpty);
if (SUCCEEDED(hr))
{
// I didn't call this function.
pBrowser2->put_Visible(VARIANT_TRUE);
}
else
{
pBrowser2->Quit();
}

I just try it, and it works well.
ms-help://MS.VSCC.v90/MS.MSDNQTR.v90.en/ieext/workshop/browser/webbrowser/reference/ifaces/iwebbrowser2/iwebbrowser2.htm

"quyadong" wrote:

> I have the same problems in my BHO, and I can't find any useful help. Maybe
> IE had forbidden it for some security issues.

0 new messages