Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / November 2005

Tip: Looking for answers? Try searching our database.

AxSHDocVw.AxWebBrowser prompts for download

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chance Hopkins - 12 Nov 2005 11:30 GMT
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?
Peter Bromberg [C# MVP] - 12 Nov 2005 23:59 GMT
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
Signature

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

> 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
[quoted text clipped - 5 lines]
> Does anyone know what I should check, to get the control opening HTML pages
> in itself instead of the default browser?
Chance Hopkins - 13 Nov 2005 03:59 GMT
Thanks for the reply. I ended up getting it working by using this version of
AxSHDocVw:

http://www.icsharpcode.net/CodeReader/SharpDevelop/087b/Base/DisplayBindingsBrow
serDisplayBindingAxSHDocVw.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.

> Try using code like this:
>
[quoted text clipped - 17 lines]
>> pages
>> in itself instead of the default browser?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.