Using Windows Forms.
I have a projet that use a Form. Into this form I have for example a simply formatted lable.
Now I need to copy this lable to an other Form.
In Access if I need to copy multiple forms or object, is only a Copy / Paste into the same or into other Projects.
In C# in design window I can do Copy but not paste.
How do it?
And if I need to copy a form from a project to an other project?
Loading
Paolo HolzlPosted Feb 22, 2023, 7:32 AM
Is not so simply.
Is functioning only if you add project, copy object between those project and than remove added project.
If you open a new project buffer is empty.
Tuhin PaulPosted Feb 17, 2023, 7:37 PM
Hey Paolo,
Hope I am able to properly answer your question. In Windows Forms, you can use the clipboard to copy and paste controls between forms or projects. Here's how to do it:
1. Select the control(s) that you want to copy.
2. Press "Ctrl+C" or right-click and choose "Copy" to copy the control(s) to the clipboard.
3. Switch to the form or project where you want to paste the control(s).
4. Press "Ctrl+V" or right-click and choose "Paste" to paste the control(s) from the clipboard onto the new form or project.
Note that when you copy a control from one form to another, you also copy the control's properties and event handlers. However, you may need to adjust the control's position and size to fit the new form or project.