you can retrieve the HTML document from a site using HttpWebResponse/HttpWebRequest classes. Then from this stream perhaps write it out to an html file and then launch a Process of IE pointing to that file you just saved.
No COM browser is not dependant on Visual Studio's version but its already installed with Windows. Right Click your Tool Box - > Add / Remove Items, a new dialog will open with .Net and COM Tabs, go to COM Tab and from the List Select "Microsoft Web Browser" Check the Box and Click OK on the Dialog, NOw this Control willl be added to your Tool Box.
Drag it from the Tool Box to your Form, Set some properties and proceed further!
No COM browser is not dependant on Visual Studio's version but its already installed with Windows. Right Click your Tool Box - > Add / Remove Items, a new dialog will open with .Net and COM Tabs, go to COM Tab and from the List Select "Microsoft Web Browser" Check the Box and Click OK on the Dialog, NOw this Control willl be added to your Tool Box.
Drag it from the Tool Box to your Form, Set some properties and proceed further!
Best Regards,
Rizwan
Well i tried that but i can't find "Microsoft Web Browser" under ".COM Component" :(
i am developing an application to display a course content , these content are stored in html documents , how to display these content on the application form
Display HTML Document in an application form ?
siavoshkc
Hi,
Can u plz elaborate more on your question by framing ur problem with scenario
Regards
Stigern
you can retrieve the HTML document from a site using HttpWebResponse/HttpWebRequest classes. Then from this stream perhaps write it out to an html file and then launch a Process of IE pointing to that file you just saved.
Where are you obtaining this HTML document from
Allen White
No COM browser is not dependant on Visual Studio's version but its already installed with Windows. Right Click your Tool Box - > Add / Remove Items, a new dialog will open with .Net and COM Tabs, go to COM Tab and from the List Select "Microsoft Web Browser" Check the Box and Click OK on the Dialog, NOw this Control willl be added to your Tool Box.
Drag it from the Tool Box to your Form, Set some properties and proceed further!
Best Regards,
Rizwan
Neil_D_Jones
Hey dude,
Check this link. Should help u.
http://vbcity.com/forums/topic.asp tid=111957
stswordman
this looks very helpful , THANK YOU SO MUCH BROTHER
erinselena
Well i tried that but i can't find "Microsoft Web Browser" under ".COM Component" :(
thank you :)
Jens Fuessler
thank you david i just tried this , couldn't find it there :(
well, it must be included in VS 2005
LamptonWorm
the HTML documents are stored in the hard disk
by the way you are one of the best authers here and i always read your comments and replies and answers , thank you
jhikel
thank you so much , but i am not sure if this control is included in the visual studio 2003 , if so, where can i find it
Arkady Frenkel
It's been a while since I last used VS 2003 now, but try the following:
Right click in your toolbox and choose "Add/Remove items"
In the window that pops up, choose "COM" or "COM Components" (can't remember what it's called)
Scroll down to "Microsoft Web Browser", mark it and click ok.
If I recall right, you should now have a WebBrowser Control in your toolbox.
Let me know if it doesn't work.
Thomas Mayer
thank-you for your nice comments/feedback - I appreciate it, I do try my best :-)
Well if the document is stored on the hard disk, why don't you open it up in Internet explorer via process class
System.Diagnostics.Process.Start("path\\file.html");
Is this not the solution you are looking for or are you wanting to view the document within the application itself
footballboy
Check out the WebBrowser control.
For more info: http://msdn2.microsoft.com/en-us/library/system.windows.forms.webbrowser.aspx
That's what you're looking for
JBartz
okay
i am developing an application to display a course content , these content are stored in html documents , how to display these content on the application form
thanks
barkingdog
do it using xml! it works great, i'm making a program like that right now, check out the link
http://www.codeguru.com/forum/showthread.php t=405249