JavaScript Editor JavaScript Editor     JavaScript Debugger

Previous Section Next Section

Main Page

Creating Tab Controls

After you've added a new tab control to a Windows form at design time, you can add tab pages to it by opening the TabPages property in the Properties window, which opens the TabPage Collection Editor that you see in Figure 10.23. You can add new tab pages with the Add button, remove them with the Remove button, and set properties in the editor.

Click To expand
Figure 10.23: The TabPage Collection Editor.

After you've added new tab pages to the control, you're free to add other controls to those pages. You can see a tab control at work—specifically, the TabControls example from the CD-ROM—in Figure 10.7, displaying two buttons in a page.


Tab controls are often used to display pages of options in a dialog box, in which case it's a good idea to dock the tab control so it fills the dialog box.

Previous Section Next Section

JavaScript Editor Free JavaScript Editor     JavaScript Editor