Copy an existing form

  • Thread starter Thread starter Bill Nguyen
  • Start date Start date
B

Bill Nguyen

I need to copy the existing form EDIT1 to EDIT2 into the same project so
that I can modify EDIT2 while preserving EDIT1 for a slightly different use.
What's an easy way to do it?
Thanks
Bill
 
Bill,

Depends,
You can inherit it what I understand you do not want.
(I write this to prevent that someone tells me that).

Otherwise, just open a new form give it your new formname.
Delete really all the code (including the designer part)
Paste the code from the old form
Rename the class in top.
Open the designer created code and see if there is a reference to the RESX
(that will be blueed). Change that to the new form class name.

Than it should be done. The designerform will be draw automaticly again.

I hope this helps?

Cor
 
Back
Top