Skip to content

Planet-Source-Code/nitin-gupta-copy-forms-at-runtime-usefull-for-webbrowser-developers__1-22862

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

Copy forms at Runtime (usefull for WebBrowser developers)

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published