How make a tab hidden when a different tab clicked ??

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to make a tab disappear when I click on a different tab
I tried the 'on click' event but that only works if I click on the tab then click again on the tabbed area.
Someone suggested the 'on change' event but there is no 'on change' event for a tab.
 
David said:
I want to make a tab disappear when I click on a different tab.
I tried the 'on click' event but that only works if I click on the tab
then click again on the tabbed area.
Someone suggested the 'on change' event but there is no 'on change' event
for a tab.

There is no Change event for a TabPage, but there is one for the entire
TabControl. That is what you have to use. If your code needs to be "page
specific" you can test the Value property of the TabControl and that will
tell you which TabPage is currently selected.
 
Back
Top