3
Answers

how we hide and show a tabpage in tabcontrol in windows application

Shailendra Verma

Shailendra Verma

15y
8.1k
1
I want to hide and show tab page in tab control  bye clicking a button or on Selected indexChanged event



Thanks



With Warm Regards
Shailendra
Answers (3)
1
kombsh m

kombsh m

NA 120 0 15y

hi friend,
 
  i can't understood your question. if you click any one of the tabpage the other pages will be automatically hides .

  if you want do this from outside of tabcontrol by using another button you can use the below code.

button_Click__Evet()
{

  tabControl.SelectedTab=tabPage3;
}
Accepted
0
Shailendra Verma

Shailendra Verma

NA 48 0 15y
i have two tab controls imposed one another and  in which 1's visibility is false at page Load . I Have attached the code below

i want to know.. is this is right way to hide and show tab controls if  anyone know better than this please help me
0
Shailendra Verma

Shailendra Verma

NA 48 0 15y
when i select a tabPage then another tabPage should be hidden in a tabControl

plz Help me.......


Thanks



with warm regards
    Shailendra