I want to run my HTML document inside the form in Windows Forms App project.
The document contains link to CSS file:
<link rel="stylesheet" href="CssSample.css">
It should be open inside the form, not as file in Chrome.
Thank you!
I want to run my HTML document inside the form in Windows Forms App project.
The document contains link to CSS file:
<link rel="stylesheet" href="CssSample.css">
It should be open inside the form, not as file in Chrome.
Thank you!
The support for style sheets is enabled in HTMLUI. This lets the user to define styles for HTML elements and decide the appearance of the HTML elements in the application. HTMLUI supports three types of style sheets.
External style sheets are linked to the file through the Link tag. While the internal style sheets are applied with the help of the Style tag inside the head section, inline style sheets are applied as the values of the style attributes of the specific HTML element.
htmluiControl.LoadHTML(@"C:\MyProjects\StyleSheets\external.html");
htmluiControl.LoadCSS(@"C:\MyProjects\StyleSheets\NewStyleSheet.css");
for HTM-viewer/style-sheets - https://help.syncfusion.com/windowsforms/html-viewer/style-sheets-css
Also see this - https://help.syncfusion.com/windowsforms/html-viewer/loading-html