How can I hide a button when a specific tab is clicked?
for example I have 4 tabs what should I do whenever I click tab 1 a certain button in my
form will disappear?
i’ve tried using if(tabControl.SelectedIndex == 1){ button1.Visible = false; } but it doesn’t work. T_T
You could use the
Clickevent on that particularTabPageJust remember to show it again when the time is appropriate.
Or better yet, just listen for when the selected tab changes:
Or more simply: