Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C#: Move Controls From Form to tabPage in VS Form Designer

I decided to change a utility I'm working on to use a tabpage. When I tried to drag various controls from the form to a tab page on top of the form, it made copies of the control, giving it a different name. It's easy enough to just remake the form on top of the tab or just edit the source code in the designer to have everything be added to the tab instead (and this is what I did, which worked), but it seems like there would probably be a better way to do this via the gui.

like image 206
Brian Avatar asked Nov 29 '22 00:11

Brian


2 Answers

The correct tool for this is the Document Outline (CTRL+W, U). Simply drag your set of controls in the outline so that they are under the tab page. Voila.

The document outline dramatically simplifies these types of operations, especially when you are dealing with complex layouts.

like image 179
Robert Venables Avatar answered Dec 11 '22 01:12

Robert Venables


Have you tried cut and paste. That usually works for me.

like image 33
Brody Avatar answered Dec 11 '22 01:12

Brody