Question How to copy a windows form?

WoloMan

New member
Joined
Jun 15, 2010
Messages
2
Programming Experience
5-10
Seems like a simple thing, but when I try to copy/paste a form in the solution explorer, it throws all kinds of errors and warnings. Is there a way to make a copy of a form? Also, what is the best way to copy a form between projects?
 
Last edited:
The form can be copy/pasted in Solution Explorer, but you have to manually give the copy a new class name afterwards. Just changing the file name of the copy in Solution Explorer won't do because after copying the file name and class name don't match and don't synchronize.

If you have a base form you can also create new forms that inherits it.
 
Back
Top