|
-
Mar 22nd, 2000, 05:03 AM
#2
Member
Ok, This is kinda hard to explain so bear with me...
ppDisp is the webbrowser object that the new page will be loaded in, so for instance if you had a form (frmMain) with a webbrowser (wbMain)....
In a module you'd have:
Dim frmMain2 as frmMain 'Declare a new copy of your form
Then In WbMain_NewWindow2 Sub of your frmMain you'd have:
Private Sub WbMain_NewWindow2(ppDisp As Object, Cancel As Boolean)
Set FrmMain2 = New FrmMain 'Makes frmMain2 an exact copy of frmMain
Set ppDisp = frmMain2.WbMain.object 'Sets the new forms webbrowser to be the thing displaying the page
frmMain2.show 'Shows the new form, its webbrowser will load the new page
End Sub
This will show a new copy of your form and have it's browser navigate to the new page.
Sorry if this code's formatting is messed up, im kinda in a hurry =P
ohhh and you will probably need to change the code for the x button on any new forms and and exit buttons, i use a variable to keep track of how many copies i have running.
Hope This Helps, If You Need and more help just reply to this msg =)
Thnx For Your Time,
CarlosTheJackal
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|