I am new to coding and I was making a Windows Form program in Visual Studio 2022 using many Windows Forms Control objects and coding them using VB. I already created one interface using around 10 controls within a tabPage and I would like to be able to copy and paste them to the different tabPages I have made, and afterwards tweak and edit them. However, I would like for them to preserve some properties when being pasted.
I tried just simply copy and pasting them, but the name and location properties do not preserve. All the controls appear in different coordinates with completely messes up the layout, and all controls are renamed to simply “controlType”1 (for example, if I copy and paste a button named “btnYellow” the new button is simply named “button1”, when it would be much more useful for it to be named “btnYellow1” or something similar). I also tried looking in the designer file but all the controls are orderded alfabetically (and I already have other 60+ controls in the form), making it really hard to find the ones I need.
I really need to know if there is a setting in Visual Studio where I can change this since I have around 30 tabPage controls where I want to paste these objects and it would take too much time to do this manually.
I am using Microsoft Visual Studio 2022, .NET Windows Forms (WinForms) App and .NET 8.0.