Udostępnij za pośrednictwem


How to: Add a Control to a Tab Page Using the Designer

The use of the Windows Forms TabControl is to display other controls in an organized fashion. You can use these instructions to display a picture on the main part of a tab page. For information about adding an icon to the label part of a tab page, see How to: Change the Appearance of the Windows Forms TabControl.

The following procedure requires a Windows Application project with a form containing a TabControl control. For information about setting up such a project, see How to: Create a Windows Application Project and How to: Add Controls to Windows Forms.

Note

The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings.

To add a control using the designer

  1. Click the appropriate tab page so that it appears on top.

  2. Draw the control on the tab page.

See Also

Tasks

How to: Change the Appearance of the Windows Forms TabControl

How to: Disable Tab Pages

How to: Add and Remove Tabs with the Windows Forms TabControl

Reference

TabControl Control Overview (Windows Forms)

Other Resources

TabControl Control (Windows Forms)