7,789
社区成员
发帖
与我相关
我的任务
分享
private void webBrowser_NewWindow(object sender, CancelEventArgs e)
{
e.Cancel = true;
string currentUri = ((WebBrowser)sender).Document.ActiveElement.GetAttribute("href");
System.Diagnostics.Process.Start(currentUri);
}
private void webBrowser_NewWindow(object sender, CancelEventArgs e)
{
e.Cancel = true;
System.Diagnostics.Process.Start(webBrowser.Url.AbsoluteUri);
}
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" ( _
ByVal hwnd As Long, _
ByVal lpOperation As String, _
ByVal lpFile As String, _
ByVal lpParameters As String, _
ByVal lpDirectory As String, _
ByVal nShowCmd As Long) As LongCall ShellExecute(0, vbNullString, "http://www.lijiejie.com/", vbNullString, vbNullString, SW_SHOWNORMAL)