Using the .NET Framework 2.0 / 3.5 TabControl, I can programmatically select a tab using the SelectedTab property, as shown in the code below:
//toggles between tabPage1 and tabPage2 private void button1_Click(object sender, EventArgs e) { if (tabControl1.SelectedTab == tabPage1) tabControl1.SelectedTab = tabPage2; else tabControl1.SelectedTab = tabPage1; }
In the .NET Framework, Compact TabControl does not have the SelectedTab property like its counterpart, the .NET Framework. So how can I select a tab programmatically?
raven
source share