Beispiel #1
0
        /// <summary>
        /// 打开一个新链接
        /// </summary>
        public static void OpenUrl(string url)
        {
#if OPENURL
            if (dockPanel.InvokeRequired)
            {
                dockPanel.BeginInvoke(new Action <string>(OpenUrl), new object[] { url });
                return;
            }

            WebBrowser.BrowserForm frm = new WebBrowser.BrowserForm();
            frm.Show(dockPanel);
            frm.Go(url);
#endif
        }
Beispiel #2
0
 private void OpenUrlEvent(string url)
 {
     WebBrowser.BrowserForm frm = new WebBrowser.BrowserForm(this.contextMenuStrip1);
     frm.Show(dockPanel);
     frm.Go(url);
 }
Beispiel #3
0
 private static void OpenUrlEvent(string url)
 {
     WebBrowser.BrowserForm frm = new WebBrowser.BrowserForm();
     frm.Show(dockPanel);
     frm.Go(url);
 }