Results 1 to 5 of 5

Thread: copying form

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2009
    Posts
    6

    copying form

    I have a form in VB2008 with 3 panels, each containing panels. How can I copy the formatting to create similar forms to it?
    Last edited by si_the_geek; Dec 23rd, 2009 at 03:19 PM. Reason: removed advertising link

  2. #2
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: copying form

    You can either select all the control using Ctl+A and Paste in another form or Copy the initialize component and paste it another form
    Please mark you thread resolved using the Thread Tools as shown

  3. #3

    Thread Starter
    New Member
    Join Date
    Nov 2009
    Posts
    6

    Re: copying form

    Thanks. Where do I find the initialize component? Please spell out. Thank you.
    Last edited by si_the_geek; Dec 23rd, 2009 at 03:20 PM. Reason: removed advertising link

  4. #4
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: copying form

    Open the

    Code:
    FormName.Designer.vb
    and there you will see

    Code:
     Private Sub InitializeComponent()
    Copy paste in the same location in the destination form
    Please mark you thread resolved using the Thread Tools as shown

  5. #5
    Karen Payne MVP kareninstructor's Avatar
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    6,713

    Re: copying form

    This might not be the path you want but if you are reusing stuff consider creating a template of the form. The wizard for this in the IDE is under file menu, export template, follow the steps.

Tags for this Thread

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