Hi I have to build an App but a lot of the forms are already developed, is there a way that i can add more than one form at a time to my project?
Printable View
Hi I have to build an App but a lot of the forms are already developed, is there a way that i can add more than one form at a time to my project?
Menu "Project">>"Add Form..." to add a new one, or menu "Project">>"Add file..." to add an already existing one.
edit: to "duplicate" an already existing form, use this:
VB Code:
Dim f As New Form1 f.Show
More than one form at a time I have to add like 90 froms to a project...
No there isn't. If the names of the forms are sequential, for example, frmAdd2,frmAdd3,frmAdd4, you could write another program to edit the project file and add each one to it. If not, you're just going to have to add them manually.
chem
I think make two project and make a group of the project, so then it is easy to understand for you.... other may be possible that you will be get confusion in the 90 from management... so you can make two project then you are able to combine them... it is easy for you... it is depend on you and the project condition that how you are managing the project... :wave:Quote:
Originally Posted by Green Africa
What exactly do you want?
More different forms? Just make them.
More instances of a particular form at runtime?
Try:
VB Code:
Dim x As Form1 Private Sub Command1_Click() Set x = New Form1 x.Show End Sub
No just building the project and having to add one form at a time if you have like ten forms in a directory it would have been nice to do like a multi select or an import function or someting.
You can drag & drop them into the IDE's project explorer.
Wow just what I was looking for thanks jeroen79
Just load the project form into Notepad, drop to a cmd window in the directory the forms are in and type dir *.frm > x.txt, load x.txt into Notepad, copy the form file names (using an editor with block copy capability would make this easier) and paste the filenames into the project file. All you need is a bunch of Form= lines (copy 1, paste into each line), with the filename following the =. Shouldn't take you more than 2 minutes.