I thought I was being clever and may have messed up my project. I needed to create several forms that were every simular to a form that I already had created. So, I just made some copies of the form file that I wanted to reproduce and gave them new form file names. Then I added the forms to the project and attached them as child forms to a TAB control. I changed all reference to the form so it would be unque. However, now the old forms that have been replaced by the new forms even though I can see the old form and the reference of where it is supposed to appear still indicates the correct form. And the new forms don't show up where I thought I was placing them. When I compile the wrong forms are being displayed, the new forms are being displayed where the old forms should be and where the new forms should be now forms are displayed.
Any thoughts on how to fix this?
Is there any way to rebuild the project from just the forms?
What is the proper way to duplicate a form so it can be modified and used somewhere else in the program?
???? I am having a hard time visualizing what happened but it appears that your TabControl is not referencing the correct child forms. I assume that you have linked the child forms to the tab control via the tab control's "Custom" property. You could try deleting the tab control and re-adding a new one and do the linking over again.
Quote from: Marty Francom
Is there any way to rebuild the project from just the forms?
Sure. Delete the project (*.prj) file. Create a new project. Add the Forms and Modules via the Project menu. Should work okay.
QuoteWhat is the proper way to duplicate a form so it can be modified and used somewhere else in the program?
Doing a "Save Form As" will create a new disk file. Once that is done, change the "Name" property so that it does not conflict with other names in your project. If this form is a tab child then the newly named form will automatically stay linked to the tab control in the position where the previous form was. This is because FireFly still sees the link to the newly named form. It doesn't care that you have re-named it. It is not "smart" enough to know that your intention is to create a new form (it thinks that you are simply re-naming the existing form). You then need to go into the "custom" property of the tab control and re-link to the correct forms.
Paul,
Thanks for the replly. Yes I have done everything your suggested except Deleteing the Tab Control and rebuilding it.
.
If I delete the prj file and start a new project. Do I delete the starting form and load the form that I want as the starting form?
.
One other question, Is there any trick to sizing the child forms of the tab control? I realy struggle to get the forms to fit completely.
Quote from: Marty FrancomIf I delete the prj file and start a new project. Do I delete the starting form and load the form that I want as the starting form?
You shouldn't have to 'delete' a form. After adding the Forms to your new project, simply select the form from the list in the Startup Form combobox in the Project's Properties dialog.
QuoteOne other question, Is there any trick to sizing the child forms of the tab control? I realy struggle to get the forms to fit completely.
No trick... it can be a pain in the butt. There is nothing that says that the child forms have to cover the tab control completely. You can leave a little bit of space if you wish and it won't make any difference.
It has been on the wish list for quite some time to have an option for tab control child forms to automatically resize to the same width as the tab control client area.