views:

318

answers:

1

Hello!

I want to set up inline content of a WPF WebBrowser control:

<WebBrowser>
    <html>
        <body><b>Inline content.</b></body>
    </html>
</WebBrowser>

Or alternatively:

Dim wb As New WebBrowser
wb.Content = "<html><body><b>Programmatic content</b></body></html>"
+3  A: 

Call NavigateToString or NavigateToStream:

wb.NavigateToString("<html><body><b>Programmatic content</b></body></html>");

Yeah, they are badly named.

itowlson
What did you mean badly named? regarding "NavigateToString" method name? if yes than I agree.
Shimmy