Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to disable a particular tab page of the tab control programmatically in C#???


Please Help!!!!!
Posted
Comments
Sandeep Mewara 21-Jun-12 10:14am    
Web/Winforms?
gaurish thakkar 21-Jun-12 11:16am    
winforms

1 solution

Have a look:
Disabling Tab Pages Programmatically[^]

Ref.: How can I disable a tab inside a TabControl[^]
Code Snippet for Hiding a TabPage
C#
private void HideTab1_Click(object sender, EventArgs e)
{
    tabControl1.TabPages.Remove(tabPage1);
}


Code Snippet for Showing a TabPage
C#
private void ShowTab1_Click(object sender, EventArgs e)
{
    tabControl1.TabPages.Add(tabPage1);
}


Also refer: Hiding and Showing Tabpages in a Tabcontrol.[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900