How to display the string html contents into webbrowser control?

Try this:

webBrowser1.DocumentText =
    "<html><body>Please enter your name:<br/>" +
    "<input type="text" name="userName"/><br/>" +
    "<a href="http://www.microsoft.com">continue</a>" +
    "</body></html>";

Leave a Comment