By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,534 Members | 950 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,534 IT Pros & Developers. It's quick & easy.

Copy an existing form

P: n/a
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?
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a

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?

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.