Windows Develop Bookmark and Share   
 index > Windows Forms General > Should be simple: frm1 Save As... frm2, but leave frm1 "as is"
 

Should be simple: frm1 Save As... frm2, but leave frm1 "as is"

I tried to save Form1 as Form2, leaving Form1 "as is" (it's OK whether IDE leaves Form1 in Project or not).

Seems VS.NET merely renames Form1 to be Form2--not what I'm trying to get. (I want to experiment with the UI on Form2, but have Form1 in the directory just in case I prefer the original).

MigrationUser 1  Thursday, July 03, 2003 4:57 PM
Right click the form, Copy all the code.
Create a new form in the project, view the code and paste all the code then fix up the name and constructor of the form.

Let us know if you find a better way.
MigrationUser 1  Thursday, July 03, 2003 6:25 PM
in Solution Explorer, click and hold on Form1, while still holding, hold down control and release on the project itself.  It will copy Form1.  You can rename it and rename the Class.
MigrationUser 1  Thursday, July 03, 2003 9:48 PM

You can use google to search for other answers

Custom Search

More Threads

• How to restrict a mdi child locations or any forms location and size?
• annoying bug
• DataGridView: Row selected when column header clicked and SelectionMode=FullRowSelect
• problem adding controls to a form
• Adding text AND value (guid) to ComboBox items!
• is there any way to prevent an MDI form to leave focus
• Defaulting Dictionary Language during Word automation
• How to set size of an ownerdraw TabControl-Item?
• Show open form on the task bar
• Application.Run()