Click to See Complete Forum and Search --> : Transfer ALL FORM Properties


Michael_HH
October 20th, 1999, 11:18 AM
Hi

The Scenario:

Two Forms - one "fully naked" (let us say this is Form2)
and one (Form1) "naked" but with a picture in and
in some ways modified by the API
(i.e. transparent and/or polygon shaped etc., etc.).

Now I want to transfer ALL properties from Form1 to Form2,
incl. All the API-modifications I’v made.

To say: SET Form2 = Form1 fails

but what can I do?

Do YOU have any good idea?

Thank you in advanced

Michael

Aaron Young
October 20th, 1999, 12:57 PM
Just create Form1 at Design Time with all the API Modifications etc, then..

In a Module..

public MoreForms() as new Form1
public iForm as Integer



In a Button Click Event or WhereEver..

private Sub Command1_Click()
ReDim Preserve MoreForms(iForm)
MoreForms(iForm).Visible = true
iForm = iForm + 1
End Sub



Each New Moreforms() Created will have all the Code/Attributes of the Original Form1.. No Runtime Changes will be Inherited though.


Aaron Young
Analyst Programmer
adyoung@win.bright.net
aarony@redwingsoftware.com