7,763
社区成员
发帖
与我相关
我的任务
分享
Private Sub wb_Navigating(sender As Object, e As WebBrowserNavigatingEventArgs) Handles wb.Navigating
e.Cancel = Not e.Url.ToString.Contains("csdn")
End Sub
Private Sub WebBrowser2_Navigating(ByVal sender As Object, ByVal e As System.Windows.Forms.WebBrowserNavigatingEventArgs) Handles WebBrowser2.Navigating
MsgBox(e.Url.ToString)
If InStr(e.Url.ToString, "xinmeng-") > 1 Then
'WebBrowser1.GoBack()
'执行命令
End If