views:

1444

answers:

3

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.

+3  A: 

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

Brody
I thought about doing that, but for some reason that makes no sense whatsoever, I decided not to.
Brian
A: 

Your control key is stuck. Do not press control key when dragging controls.

I drag controls from form control to tab page controls all the time no problem. Answer #1 is totally correct.

You can use the Document Outline window and move the controls to the tab page one by one by dragging tree nodes.

The hardest problem is retaining control locations on the tab page.

P a u l
+1  A: 

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.

Robert Venables