Hi all,
On my website I have a popup filter that I want to handle in my vb application. Ideally I would like my filter to appear in the same Webbrowser control on my form as my website, then when the filter is applied, my webbrowser control would show the resulting window (without the need to close another form).
At the moment, my filter will appear in a new form, which must be closed manually after the filter is applied.
On my website I have a popup filter that I want to handle in my vb application. Ideally I would like my filter to appear in the same Webbrowser control on my form as my website, then when the filter is applied, my webbrowser control would show the resulting window (without the need to close another form).
At the moment, my filter will appear in a new form, which must be closed manually after the filter is applied.
Code:
Private Sub Form_Load()
WebBrowser1.Navigate "http://www.mysite.com"
End Sub
Private Sub WebBrowser1_NewWindow2(ppDisp As Object, Cancel As Boolean)
'opens filter in a new window
Dim frm As Form1
Set frm = New Form1
Set ppDisp = frm.WebBrowser1.Object
frm.Show
End Sub