Search code examples
vb.netborderless

Adding same second Form2 to same project but same style as template vb net


I have made some borderless Form1 in my solution, now I want AboutBox will have same design and also I need more 2,3 Forms but same style. If I click "add new item" or "existing" it add the main Form like default Visual Basic has :'( How should I proceed?


Solution

  • In fact, all the design of the form is stored in the Form.Designer.vb! file. You can simply copy the properties you wish to apply to the added forms and past it in their designer accordingly. Check image below to see the designer.

    1. Modify the form as you wish them to be.
    2. Once done, save the changes
    3. Open the designer and copy all the codes
    4. Add another form.
    5. Open its designer and paste all codes
    6. Change the name of the form
    7. The form will be a duplicate of the previous one and you can adapt your changes.