7,785
社区成员




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 Long
Call ShellExecute(0, vbNullString, "http://www.lijiejie.com/", vbNullString, vbNullString, SW_SHOWNORMAL)