Search code examples
vb.netwinformstabcontroltabpage

Is there a way to make a TabControl to be any of its tabs selected?


My client wants to have two separate tab lists on a form, but only one tab can be selected of the two tab lists. Can I create two TabControls to work like this? I.e. when one tab is selected at the first TabControl, the other should have all of their tabs deselected and vica versa.

EDIT:
This is what he imagined:enter image description here


Solution

  • Based on your image, I believe you should use RadioButtons. That limits selection to only 1 button but you can put them wherever you want. Then you could have a container that populates based on which button is selected.

    enter image description here