I try to duplicate a form in my Designer with all the elements on it, that i have not to do the huge Job again of designing the full form again. I need only a few little changes on this form copy to do, so i do not want to design the same again from new. If i click on the form "copy" and then do "paste" on my Project the full Project is destroyed forever and a lot of error Messages Pop up about the form copy. I had to throw my Project afterwards since there's no undo of that action possible. Since this was a huge loss of work I decided to ask the question:
How do I valid copy/duplicate an existing form in the designer without errors afterwards appearing?
您应该复制表单文件,然后在.cs
和.Designer.cs
文件中的副本中更改类名称。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.