Reputation: 2892
I have a form "Search.frm" in my vb6 project. I want to add the same form with a different name "SearchNew.frm". I copied the form "Search.frm" and renamed to "SearchNew.frm" and tried to add to the project. But it is giving me an error "Search.frm will not be loaded. Name is already in use". Can anybody please help? Thank you.
Upvotes: 5
Views: 4940
Reputation: 11991
How to clone a form in VB6:
If you are using custom controls thing get trickier:
Upvotes: 2
Reputation: 16101
To summarize the excellent answers and comments above:
Upvotes: 4
Reputation: 320
It's been a long time since I wrote any VB6 code, but I'm pretty sure you need to change the Name property of the form, not just the filename, in order to use it as a separate form.
Upvotes: 1