I have a windows form application written in C# and it has three tabs and I would like the accept button change with the active tab. Like When I am in tab 1 I want button _1 to be the accept button but when I am in tab 3 I want button_3 to be my accept button. I cannot figure out how to do this and maybe I’m not using the correct terms in my searches but I cannot find any good resources online showing me how to do this.
Share
Best guess would be to hook in to the
SelectedIndexChangedevent on the tab control and change theAcceptButtondepending on which tab is selected. Pseudo-code:Or something of the sort.