I am designing a program that will have 2 panels on top of each other with different controls in them. The user will be able to switch between the panels with a button outside of them.

I remember a custom tab control here on these forums that had a button with which you could switch to next tab, but the amazing thing was that the button worked in the designer. If you clicked it you switched to next tab in the designer.

I want the switch button I have to also work in the designer, so I can easily switch between the panels when changing their content.

What code do I need to make that happen?