2

I want to load an HTML file that is shared in the network with webkitbrowser in winform C#.

For example a file url in a browser is:

file:///10.10.10.10/files/index.html

I also tried this in webkitbroeser:

file://///10.10.10.10//files//index.html

Webkitbrowser doesn't load HTML file. In local there is no problem. I use this url:

file:///c://index.html

WinAPP, C#, Visual Studio 2010

4

1 回答 1

0

你很亲密。而不是 2 个斜线,只需使用 1:

webKitBrowser1.Navigate("file:///c:/my/local/path/test.html");
于 2014-12-17T01:33:00.197 回答