I have a WinForm on a local computer in VB
I have a WebBrowser control.
I have a WebView control.,
I can load a local file into the WebBroswer with : Form1.WebBrowser1.Navigate(App.Path & "/ip.html")
I can load a URL into WebView with :
MainForm.WebView1.NavigateToString= New Uri(String.Format("http://www.website.com/myPage.html"))
I can load a html as a string into WebView with :
MainForm.WebView1.Source = New Uri(String.Format("<html><h1>My Text Goes Here</h1></html>"))
How do I load a local html file into WebView?
These doesn't work :
Form1.WebView1.Navigate(App.Path & "/ip.html")
Form1.WebView1.Navigate("file:///" & App.Path & "/MyPage.html")
Form1.WebView1.Source(App.Path & "/MyPage.html")
Form1.WebView1.Source("file:///" & App.Path & "/MyPage.html")
Form1.WebView1.NavigateToLocal("file:///" & App.Path & "/MyPage.html")
Form1.WebView1.NavigateToLocal(App.Path & "/MyPage.html")