|
-
Sep 28th, 2006, 08:30 AM
#1
Thread Starter
Member
[RESOLVED] Adding Multiple forms
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?
-
Sep 28th, 2006, 08:32 AM
#2
Re: Adding Multiple forms
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
-
Sep 28th, 2006, 08:36 AM
#3
Thread Starter
Member
Re: Adding Multiple forms
More than one form at a time I have to add like 90 froms to a project...
-
Sep 28th, 2006, 08:44 AM
#4
Re: Adding Multiple forms
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
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Sep 28th, 2006, 08:53 AM
#5
Re: Adding Multiple forms
 Originally Posted by Green Africa
More than one form at a time I have to add like 90 froms to a project...
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...
-
Sep 28th, 2006, 09:08 AM
#6
Frenzied Member
Re: Adding Multiple forms
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
-
Sep 28th, 2006, 09:12 AM
#7
Thread Starter
Member
Re: Adding Multiple forms
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.
-
Sep 28th, 2006, 09:15 AM
#8
Frenzied Member
Re: Adding Multiple forms
You can drag & drop them into the IDE's project explorer.
-
Sep 28th, 2006, 09:20 AM
#9
Thread Starter
Member
Re: [RESOLVED] Adding Multiple forms
Wow just what I was looking for thanks jeroen79
-
Sep 28th, 2006, 09:20 AM
#10
Re: Adding Multiple forms
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.
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|