Dave,
You could do this, but it will require a good deal of interop (basically
it involves faking out the COM URL download system, creating an
implementation of IMoniker, and then calling the Load method on MSHTMLs
implementation of IPersistMoniker).
If you want to know the details, let me know, otherwise, I'd recommend
using a temp file. The advantage to my method is that you would be able to
tell MSHTML what the base URL to use is when resolving relative URLs.
Also, if your HTML is completely in memory and has no relative URLs,
then you can call the Load method on the implementation of IPersistMemory.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Dave" <Da**@discussions.microsoft.com> wrote in message
news:1E**********************************@microsof t.com...
Hi,
I'm creating a windows forms utility to create dhtml flyout menus. I want
to load the html and javascript generated into a webbrowser control, thats
on
the form, so I can view the menus and view them in control.
I found there is no control in .net for this so I'm using the webbrowser
control.
How can you load the html directly into the control? Or do I have save the
file to disk first?
Thanks, Dave