Reputation: 43
I want to create the same form multiple times in a project, but I can't find out how... I tried to copy the code, to copy and paste and rename .Designer.vb and .vb files in the project, but none of these worked.
I know that there a few similar questions, but I keep getting errors...
Is it possible to give me a step by step guide on how to do this?
Upvotes: 0
Views: 1509
Reputation: 1594
Whether you should do this or not is a separate question but to do what you ask you will need to copy 3 files for the form to the other project folder Assuming the form is called Form1 the three files you need will be named as follows:
Form1.Designer.vb Form1.resx Form1.vb
Once you have all three files copied to the other project just use the button in the solution explorer to show all files and then include these files in your second project. If there are any errors they will be due to missing references so check that but you should be all good.
Upvotes: 1