Oct 16, 2008

C# - Web Browser Control - Load String in Web Browser control (4th way).

Here is one more way to load string in Web Browser Control (C#). This is in case you are using the managed control.

        
// Fourth way to write html in WebBrowserControl with C#:
        wb.DocumentText = strHtml;

I can tell you (just guessing) that this will be the best one as it became available in the managed control (at least I didn't found it in the old COM versions). That is why I think it was reviewed and probably optimized.
>

No comments: