By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,498 Members | 1,564 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,498 IT Pros & Developers. It's quick & easy.

AxSHDocVw.AxWebBrowser prompts for download

P: n/a
I'm trying to use the AxSHDocVw.AxWebBrowser control in a form and when I
call .Navigate, instead of showing the html page, the download prompt shows
up. If I click open, it uses my default browser instead of the control.

If I open an excel doc or a word doc on my local HD, it shows up in the
control after I click open.

Does anyone know what I should check, to get the control opening HTML pages
in itself instead of the default browser?

Nov 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Try using code like this:

object zero=0;
object nl="";
axWebBrowser1.Navigate("http://www.yahoo.com",ref zero, ref nl, ref nl, ref
nl);

--Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Chance Hopkins" wrote:
I'm trying to use the AxSHDocVw.AxWebBrowser control in a form and when I
call .Navigate, instead of showing the html page, the download prompt shows
up. If I click open, it uses my default browser instead of the control.

If I open an excel doc or a word doc on my local HD, it shows up in the
control after I click open.

Does anyone know what I should check, to get the control opening HTML pages
in itself instead of the default browser?

Nov 17 '05 #2

P: n/a
Thanks for the reply. I ended up getting it working by using this version of
AxSHDocVw:

http://www.icsharpcode.net/CodeReade...HDocVw.cs.html

When I used the version created by doing this:

aximp %%SYSTEMROOT%\System32\SHDocVw.dll

I get the behaviour I mentioned earlier.

I'm not sure why :-/

Thanks again for trying to help.

"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in message
news:5E**********************************@microsof t.com...
Try using code like this:

object zero=0;
object nl="";
axWebBrowser1.Navigate("http://www.yahoo.com",ref zero, ref nl, ref nl,
ref
nl);

--Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Chance Hopkins" wrote:
I'm trying to use the AxSHDocVw.AxWebBrowser control in a form and when I
call .Navigate, instead of showing the html page, the download prompt
shows
up. If I click open, it uses my default browser instead of the control.

If I open an excel doc or a word doc on my local HD, it shows up in the
control after I click open.

Does anyone know what I should check, to get the control opening HTML
pages
in itself instead of the default browser?

Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.