[vb.net2008] WebBrowser1 NewWindow
salut,
je ne sais pas comment faire ca en .net
Code:
1 2 3 4 5 6
| Private Sub WebBrowser1_NewWindow2(ppDisp As Object, Cancel As Boolean)
Dim frm As Form2
Set frm = New Form2
Set ppDisp = frm.WebBrowser1.Object
frm.Show
End Sub |
car ce code ne function pas
Code:
1 2 3 4 5 6
| Private Sub WebBrowser1_NewWindow(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles WebBrowser1.NewWindow
Dim frm As Form2
frm = New Form2
sender = frm.WebBrowser1.Object
frm.Show()
End Sub |
merci