D
David Veeneman
In .NET 2.0, how do I clear the contents of a web browser control?
I'm using a WebBrowser control in a Windows Form app to display strings
genrated by my application and formatted as HTML--I'm not using it to do any
actual web browsing.
I use 'webBrowser1.DocumentText = myText' to load an HTML string into the
control. But I can't clear that text when I want to load a new string into
the control.
I've tried 'webBrowser1.Navigate("about:blank")', and that doesn't seem to
work. I've looked for articles about using the WebBrowser control as an HTML
renderer, but I've had no luck.
Any articles out there? Any suggestions on how to clear the control? Thanks
in advance.
David Veeneman
Foresight Systems
I'm using a WebBrowser control in a Windows Form app to display strings
genrated by my application and formatted as HTML--I'm not using it to do any
actual web browsing.
I use 'webBrowser1.DocumentText = myText' to load an HTML string into the
control. But I can't clear that text when I want to load a new string into
the control.
I've tried 'webBrowser1.Navigate("about:blank")', and that doesn't seem to
work. I've looked for articles about using the WebBrowser control as an HTML
renderer, but I've had no luck.
Any articles out there? Any suggestions on how to clear the control? Thanks
in advance.
David Veeneman
Foresight Systems