Tuesday, November 20, 2012

Adding TabControl to a C# Windows Form

A TabControl in a C# Windows Form allows us to group controls of different type in different tab panes in the same Form, the user can navigate between various tabs and access the controls in each of the Tabs.

A
TabControl is used when there are multiple controls to be displayed in a single form, TabControls helps in aligning the controls into groups and provides a better UI design to the form, in this post we shall see on how to add TabControls to a C# Windows Form.


1. Create a new / open an existing C# Windows application
2
. Open and existing / Add a new Windows Form to the Project
3. Drag the
TabControl under the Containers section of the Toolbar into the form.
4. Open the
TabPages collection property of the TabControl
5. Add/Remove the required number of tabs, and set the Name and Text for each of the Tabs.
6. Now we can drag Controls into each of the
TabPanes in the tab control.
7. The final Tab Control looks as follows.





Search Flipkart Products:
Flipkart.com

No comments: