How to switch to perticular tab programically?
Hi,
I have tabconrol in my application, I want to switch to perticular tabPage say Tab1, on some event,How to do that? plz help me in this regard.
Thanx in advance.
Cheers
soman.
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

jcity444Rank #3,217 · 446 pointsPosted Mar 22, 2005, 7:18 PM EST
gjmproposal18 pointsPosted Mar 22, 2005, 7:23 PM EST
function setDefaultTab(String tabName) { for(int i=0; i< tabMain.TabPages.Count; i++) { if (tabMain.TabPages[i].Text.ToLower() == tabName.ToLower()) { tabMain.Focus(); tabMain.SelectedIndex = i; break; } } }soman25 pointsPosted Mar 22, 2005, 7:32 PM EST