Embed HTML- page

R

Robertico

Is it possible to embed a HTML-page to my application and display it in a
webbrowser control ?

Robertico
 
F

Family Tree Mike

Robertico said:
Is it possible to embed a HTML-page to my application and display it in a
webbrowser control ?

Robertico

Yes. Add an html page to your project, and set the build action to "Copy if
newer". Then in your form app, use a line:

webBrowser1.DocumentText = File.ReadAllText("somefile.htm");

Mike
 
R

Robertico

Yes. Add an html page to your project, and set the build action to "Copy
if
newer". Then in your form app, use a line:

how do I add the html page to my project?

Robertico
 
R

Robertico

how do I add the html page to my project?

Received errors... but fixed now.

Thanks !!

Robertico
 

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