求大神指教,我新建了一个Form1窗体,并丢如了一个webbrowser控件,在项目中新建了一个page.html,
当我在主窗体Form中点击跳转按钮,跳转到Form1,并且想让page1.html显示在webbrowser中,路径怎么给;Form1窗口中代码如下:
private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
string str_url = Application.StartupPath + "\page.html";
Uri url = new Uri(str_url);
webBrowser1.Url = url;
webBrowser1.ObjectForScripting = this;
}