CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 1999
    Posts
    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


  2. #2
    Join Date
    Sep 1999
    Location
    Red Wing, MN USA
    Posts
    312

    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]
    Aaron Young
    Senior Programmer Analyst (Red Wing Software)
    Certified AllExperts Expert

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured