How to load .html file from embedded resources by web browser in visual basic 2010
html, vb.net, visual-studio, visual-studio-2008, visual-studio-2010
Solution
Something like this:
VB code:
Private Sub DisplayHtml()
Me.WebBrowser1.Navigate("about:blank")
Me.WebBrowser1.Document.Write(String.Empty)
Me.WebBrowser1.DocumentText = My.Resources._Readme
End Sub
you can use this as reference to your problem:
http://weblogs.asp.net/gunnarpeipman/archive/2009/08/15/displaying-custom-html-in-webbrowser-control.aspx
Problem
Visual Basic 2010 I try this myWebBrowser1.Navigate(My.Resources.HomePage) but it fail to execute it show "Value does not fall within the expected range." PS : HomePage is a .html file, I add it to the project resources.(embedded) Please help me ~