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.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
somanPosted Mar 23, 2005, 12:32 AM
gjmproposalPosted Mar 23, 2005, 12:23 AM
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; } } }jcity444Posted Mar 23, 2005, 12:18 AM