I'm using a WebBrowser control and the text displays but it isn't using the linked css, it just appears as plain text. I'm populating it like so
webBrowser1.DocumentText = some_text;
In some_text is <link rel="stylesheet"href="PF.css">
along with the rest of the html
When I save some_text to a file and have the WebBrowser navigate to it it works fine
webBrowser1.Navigate(@"C:\test.html");
and PF.css is in C:\
I've put PF.css in my project folder, where all the class files are.
How can I make the WebBrowser control use/display my linked css file? I don't want to save off my string to a file and then navigate to it.
thanks