Link to home
Start Free TrialLog in
Avatar of AlexSeifert
AlexSeifert

asked on

NewWindow2

In Visual Basic 6, I'm created a MDI browser, however I'm not entirely sure how the NewWindow2 function works for trapping new windows. Can someone give me an example of how it works? Thanks in advance.

Alex
Avatar of TrevorParnhamntl
TrevorParnhamntl

Private Sub WebBrowser1_NewWindow2(ppDisp As Object, Cancel As Boolean)



' Create new instance of form
Set frmWB = New frmWeb
   frmWB.Visible = False

   frmWB.WebBrowser1.RegisterAsBrowser = True

   Set ppDisp = frmWB.WebBrowser1.object



'   frmWB.Visible = True
   
   frmWB.WebBrowser1.Visible = True
   
   
   
   
'   frmWB.WebBrowser1.Left = frmWB.Left
'   frmWB.WebBrowser1.Top = Me.Top


 'ppDisp.Left = frmWB.Left
'
'
''frmwb_GotFocus
'
'
frmWB.Left = 1800
frmWB.Top = 2300
WebBrowser1_Validate (Cancel)




End Sub
ASKER CERTIFIED SOLUTION
Avatar of TrevorParnhamntl
TrevorParnhamntl

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AlexSeifert

ASKER

Thanks!