Change TabPanel Tab programmatically

I am using a TabPanel with 5 tabs.

Does anyone know how to programmatically show the second tab ?

By default it shows the first. Thanks in advance.

Set the Value property of the TabPanel to 1.

TabPanel1.value = 1

Your 5 tabs are a set numbered 0-4. To show the 2nd one do tab(1).Value = True

!%#?"! Thanks! lol I was testing exactly the same solution for last tab (+1) that’s why it didnt work before