Reputation:
I need to have 8 forms of the same format within the same project
I dont really want to specifically place all the buttons etc in each of them
Is there a way i could copy and paste the format and then change all the button names etc?
The program is a flight booking system so for different flights on the same plane type i need multiple forms
Upvotes: 2
Views: 27048
Reputation: 3745
To duplicate a Windows Form, you have to do these simple steps :
1- Open the folder project in File Explorer.
2- Copy the three files, .vb
, .Designer.vb
, .resx
of the form that you want to copy.
3- Rename the files with the name you want.
4- Open the file with a text editor for example Notepad++
.
5- Modify the Class
name in the .vb
and .Designer.vb
file.
6- Include those files in the project.
Below an example demo :
Upvotes: 17
Reputation: 2180
Ok you can do copy past from your form1 ,a form CopyOfForm1 shoud be created .
Have a look at this Gif picture :
Upvotes: 4