# Displaying the Same Set of Controls on each DockingTabPage

Get started with Menus and Toolbars for WinForms. Create versatile menus and docking/floating toolbars. See more in documentation here.

## Content



To display the first set of controls on [C1DockingTabPage](/componentone/docs/win/online-menus-toolbar/) for the rest of the [C1DockingTabPage](/componentone/docs/win/online-menus-toolbar/)s without duplicating them, perform the following steps:

1.  Add a panel to the first [C1DockingTabPage](/componentone/docs/win/online-menus-toolbar/) and then set its **Dock** property to **Fill** so it spans the whole [C1DockingTabPage](/componentone/docs/win/online-menus-toolbar/).
2.  Add the controls on the panel.
3.  In the **SelectedIndexChanging** event handler move the panel from the previous docking tab page to the new one.
    
    DOC-DETAILS-TAG-OPEN
    
    DOC-SUMMARY-TAG-OPEN
    
    To write code in Visual Basic
    
    DOC-SUMMARY-TAG-CLOSE
    
    ```vbnet
    Me.dockingTab.SelectedTab.Controls.Add (myPanel)
    ```
    
    DOC-DETAILS-TAG-CLOSE
    
    DOC-DETAILS-TAG-OPEN
    
    DOC-SUMMARY-TAG-OPEN
    
    To write code in C#
    
    DOC-SUMMARY-TAG-CLOSE
    
    ```csharp
    this.dockingTab.SelectedTab.Controls.Add (myPanel);
    ```
    
    DOC-DETAILS-TAG-CLOSE
    

## See Also

[Enabling DockingTab Docking and Floating](/componentone/docs/win/online-menus-toolbar/menusandtoolbarsforw2/dockingtabtasks/enablingdockingtabdo)