Search Tools Links Login

Copy forms at Runtime (usefull for WebBrowser developers)

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 !!

Original Author: Nitin Gupta


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 this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 96 times


Visual Basic 6


No attachments for this post

Loading Comments ...


No comments have been added for this post.

You must be logged in to make a comment.