README.md
December 4, 2022 ยท View on GitHub
Description
I have observed that many browsers are coming up, but none supports the same format when a new window is opened, simply because they use IE control. Here's a code for guys who want to create forms at Runtime (Copy their previous forms onto new ones). Plz vote if u use it !!
More Info
| Submitted On | |
| By | Nitin Gupta |
| Level | Intermediate |
| User Rating | 4.8 (48 globes from 10 users) |
| Compatibility | VB 3.0, VB 4.0 (16-bit), VB 4.0 (32-bit), VB 5.0, VB 6.0 |
| Category | Coding Standards |
| World | Visual Basic |
| Archive File |
Source Code
For normal coders :
Dim frmCopy As Form1
Set frmCopy = New Form1
frmCopy.Visible = True
For WebBrowser developers :
Private Sub WebBrowser1_NewWindow2(ppDisp As Object, Cancel As Boolean)
Dim frmNew As Form1
Set frmNew = New Form1
frmNew.WebBrowser1.RegisterAsBrowser = True
Set ppDisp = frmNew.WebBrowser1.Object
frmNew.Visible = True
End Sub