Opening local files in Webkit .NET

前端 未结 7 1957
天涯浪人
天涯浪人 2021-01-20 11:33

A simple WebKitBrowser1.Navigate(localfilehere) doesn\'t work for some reason.

I tried adding \"file://\" to the URL but that didn\'t work either.

This seems

相关标签:
7条回答
  • 2021-01-20 12:07

    Suppose index.html is in bin/debug folder then

    Use "file:///"+Environment.CurrentDirectory.Replace(@"\",@"/")+"/index.html"

    Suppose index.html is in bin/debug and created folder like www then

    Use "file:///"+Environment.CurrentDirectory.Replace(@"\",@"/")+"/www/index.html"

    0 讨论(0)
提交回复
热议问题