Pages

Monday, September 5, 2011

Select Tab Page Code.

In order to understand how to select Tab Pages by code in VB.Net, you must understand the difference between TAB CONTROL and TAB PAGE.

TAB CONTROL - a control that contains and organize different items that shares the same space in a form.

TAB PAGE - each page in a Tab Control is called a tab page, by default in VB.net there are two tab pages when you create a new Tab Control.

You can change page view by clicking the Tabs, but you can also create a code to change page views. Below is the sample code on how to change view through code.

Example Code:   TabControl1.SelectedTab = TabPage1

No comments:

Post a Comment