I'm a newbie to VB.NET and I'm trying to figure out how to duplicate an existing form. My project consists of 4 forms. Forms 2 and 3 are nearly identical. I want to duplicate form 3 after form 2.
Hi sburden
You can do it in two ways
1) Copy you FORM2 in some other directory,Rename FORM2 to FORM3 ,Move this FORM3 to your project folder and add this form (this method will might give you error as FORM3 still have class as named as FORM 2,so you can change it in FORM3.VB
OR
2) Add a new form name it FORM3 ,expand all code means FORM2.VB and Select All the Code and copy it then open the FORM3 and paste the Code in it change the Class name to FORM3
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.