Microsoft Communities

Welcome to WindowsClient.net | Sign in | Join

Here are some frequently asked questions about Windows Forms and their answers.

Windows Forms FAQs

How do I programmatically select a page in a TabControl?

There are a couple of ways you could do select a tab page programmatically. This selects the second Tab page:

tabControl.SelectedTab = this.tabPage2

This also selects the second Tab page:

tabControl.SelectedIndex= 1;

Contributed from George Shepherd's Windows Forms FAQ



Page view counter