Articles in this section
Category / Section

How to load the HTML document in the form of string into the WinForms HTMLControl?

1 min read

Load the HTML document

The HTML document available in the form of string can be loaded into the HTMLUI control with the help of the LoadFromString method of the HTMLUI control. The specific string should be enclosed inside the body tag.

C#

string htmlString ="Document loaded through the LoadFromString method";
this.htmluiControl1.LoadFromString(htmlString);

 

VB

Private htmlString As String ="Document loaded through the LoadFromString method"
Me.htmluiControl1.LoadFromString(htmlString)

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied