Programmatically changing tab in tabcontrol


Is there a method for dynamically set the selected tab in a tab control?

Neither docs nor seems to mention anything but the basic usage of the tabs.

Not built-in. Tabs need a little love. There is an issue for implementing Endpoint for them as well. You might be able to do something crazy with JavaScript by setting the active class on the tab you want but I think it would be a big hack. Probably wouldn’t be that hard to implement right in the component.


What happens if you throw select-udelement at them? :see_no_evil:

:laughing: I don’t know! Maybe it would work.

One could use Invoke-redirect too, as the Tab has their own url (URL+ID it seems):