PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Marc Van Cauwenberghe on January 02, 2006, 06:04:17 AM

Title: Copy form
Post by: Marc Van Cauwenberghe on January 02, 2006, 06:04:17 AM
Hello,

is there an easy way to copy a form in the same project?

Marc
Title: Copy form
Post by: TechSupport on January 02, 2006, 01:37:52 PM
Easy? Maybe. I have had success with the following:

Use Windows' Fiel Explorer and make a copy of your Form's .frm and corresponding .frx file. Rename these disk files to whatever you wish. You should now be able to add the new Form to your project via the Project, Add Form, Existing menu option.

You must change the new Form's Name property because an existing file in your project will already have that name. You will also have to search/replace in the code for any references in the Form that uses the old name.