日期:2014-05-18  浏览次数:20957 次

webbrowser控件问题,打包安装后显示不了本地网页
如题:在vs2008里可以正常显示,打包安装后显示不了网页。关键代码如下:
  string filePath = AppDomain.CurrentDomain.BaseDirectory + + fileName;
  filePath = System.IO.Path.GetFullPath(filePath);
  this.webbrowser1.Navigate(filePath);
请知道的朋友指点下。
另:我要实现的功能很简单,就是显示一些做好的网页而已。

------解决方案--------------------
string filePath = fileName;
this.webBrowser1.Navigate(filePath);

我是新手,问问上面的代码就能显示硬盘上的网页了,用那么多代码有什么用?
------解决方案--------------------
看看是不是权限问题