My code has create tabs dynamically in code behaind. If the user enters my form, the code should dynamically set the required active tab for his user role.
Anyone has idea?
Thanks,
davis
tcTasks.Tabs[tabindex].Selected = true;
Got it.
tcTasks.SelectedTab = tcTasks.Tabs("AllTasks")
Awesome.
" set it as the SelectedTab of the tab control."
So how do you do that exactly.
Once you determine the tab which needs to be active, set it as the SelectedTab of the tab control.
You have to do some workaround to accomplish this. May be you can store the form nam in tag property of the tab and then at runitme set active tab based on form name.