Advertisement
ASP_Volume3 Coding Standards #52790

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

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
<B>For normal coders :</B><BR><BR>
Dim frmCopy As Form1<BR>
Set frmCopy = New Form1<BR>
frmCopy.Visible = True<BR><BR>
<B>For WebBrowser developers :</B><BR><BR>
Private Sub WebBrowser1_NewWindow2(ppDisp As Object, Cancel As Boolean)<BR>
Dim frmNew As Form1<BR>
Set frmNew = New Form1<BR>
frmNew.WebBrowser1.RegisterAsBrowser = True<BR>
Set ppDisp = frmNew.WebBrowser1.Object<BR>
frmNew.Visible = True<BR>
End Sub<BR>
Original Comments (3)
Recovered from Wayback Machine