Results 1 to 5 of 5

Thread: [RESOLVED] Make a form very similar to existing one

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 1999
    Location
    Ont, Canada, Earth
    Posts
    458

    Resolved [RESOLVED] Make a form very similar to existing one

    Hi,
    My app will have two forms which have quite a few controls but are 90% the same. frmCustomers and frmProducts.

    I created frmCustomers, and now I need to make the second one.

    Since the 2nd one is almost identical to the first one, I was hoping to somehow copy and rename the first one and just make the changes and save under frmProducts.

    Otherwise I have to create the 2nd form from scrach.

    Is it possible?
    Thanks

    Tomexx.

  2. #2
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Make a form very similar to existing one

    From the "Solution Explorer" right click your project and go-to "Add==>Add Inherited Form" and select your original form...

    You can Also copy the "Designer generated" region from the first form and copy it to the second form, you might need to fix a few names (Not a big deal)
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Make a form very similar to existing one

    Or you could just change the inheritence line in your 'child' form to make it inherit from your original form.

  4. #4
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Make a form very similar to existing one

    Quote Originally Posted by mendhak
    Or you could just change the inheritence line in your 'child' form to make it inherit from your original form.
    That's just exactly what I said in the first line
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Make a form very similar to existing one

    Maybe you should read it again.

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