For the web browser control, how do you stop it from launching internet explorer's window when you click on a link in a 'New Window'. Once we stop it from using internet explorer's, how can I make it use my own form?
Printable View
For the web browser control, how do you stop it from launching internet explorer's window when you click on a link in a 'New Window'. Once we stop it from using internet explorer's, how can I make it use my own form?
Create a new instance of your primary form
'When a new window is created, an instance of the Browser is generated
'Prevents default browser from creating new window
Private Sub wbBrowser_NewWindow2(ppDisp As Object, Cancel As Boolean)
'declare a new instance of the form
Dim frmBrowser2 As frmBrowser
Set frmBrowser2 = New frmBrowser
Set ppDisp = frmBrowser2.wbBrowser.Object
'offset the form (in twips)
frmBrowser2.Move 1000, 500, 14500, 14500
frmBrowser2.Show
End Sub
Hope thats what you were asking for.
dubi
Thanks! :)
I get funkadelic results when "javascript:pop('whatever')" is used to show a window. There are probably extra parameters or something acciated with that java call. First, the window size is way bigger then it should be therefor the background of the new window tiles, which it should not, in this case (if you were wondering, i was using www.battle.net/scc/ then the green link as a test for this). Also, I would like to create a different window(without all menus and such) for when it IS java... or just like IE handle those...
Thnx in advance.
[This message has been edited by Xero (edited 02-18-2000).]
[This message has been edited by Xero (edited 02-18-2000).]