Embed HTML- page

  • Thread starter Thread starter Robertico
  • Start date Start date
R

Robertico

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

Robertico
 
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
 
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
 
how do I add the html page to my project?

Received errors... but fixed now.

Thanks !!

Robertico
 
Back
Top