Creating a duplicate form in Visual Basic 6.0

I have a form (e.g. abc.frm ). I want to duplicate the form (e.g. xyz.frm ) abc.frm . I do not want to create it again. Therefore, I used the Save As option. But it did not appear in Project Explorer .

To solve this problem, I did the following.

  • I found xyz.frm in the source folder
  • Opened with notepad.
  • Changed form name from abc to xyz

But now I can not find the abc.frm file in Project Explorer .

If Save as is the right option for creating a duplicate form, then What is the solution to save both files? . If not, how do you create a repeating form ?

+4
source share
1 answer

Save As will save the form as a new name and change the link in the project to a new form file.

You can:

  • Create ABC Form
  • Save as ABC.frm
  • Change name to XYZ
  • Save as XYZ.frm
  • Add project ABC.frm to the project

or

  • Create ABC Form
  • Save as ABC.frm
  • Copy ABC.frm to XYZ.frm
  • Change XYZ.frm to use the new name
  • Add XYZ.frm to the project
+8
source

All Articles