Display HTML in Application Window

G

Guest

I am pretty new at C#, so bare with me. I want to be able to read a local HTML file and display it in a browser window within my application. I also want to submit that page to my application and generate a "Post" to a web server and read the contents back and display back into the same browser window in my application

I have found the methods HttpWebRequest and HttpWebResponse that allows me to read/write to the Web server, but I am not sure which Class or methods I should use to render the HTML in my application window, or to display the HTML response

I am sure its fairly basic. Does someone have a code sample or link where they can direct me

Thanks for the hel
 
M

Michael Giagnocavo [MVP]

Add a refernce to MSHTML. That has a browser component, so you end up
hosting "IE".

Then you can point it wherever you want, or write directly to the document.
You can even listen on localhost on whatever port, and have the webbrowser
component communicate to your app through that, if you are so inclined.

-mike
MVP
 
G

Guest

Mike,
Thanks for the start, but can you give me a little more information, specifically which component ? I added the reference and see all kinds for things in there when I expand the Object List for MSHTML, but not sure where to start or which control method to begin with
Thank for you help
Bob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top