[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?
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)
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.
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
Re: Make a form very similar to existing one
Maybe you should read it again.