|
-
October 20th, 1999, 11:18 AM
#1
Transfer ALL FORM Properties
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
-
October 20th, 1999, 12:57 PM
#2
Re: Transfer ALL FORM Properties
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
[email protected]
[email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|