Setting the Active Tab on a TabbedPanel

I have a TabbedPanel with 2 tabs. Both tabs contain a ImageWell. When I first start my app I populate the fields from a SQLite database and, in the TabbedPanel, the image in the first tab is displayed as it should. If I click on the second tab, it displays the image in the second tab as it also should.

The problem I am having is, if I click on the second tab and the image in the second tab is being displayed and I then move to the next record, the second tab remains as the active tab. I want it to make the first tab the active tab when moving to a new record. How can I do that in xojo?

I’m using Windows.

Use myTabPanel.SelectedPanelIndex = 0.

@Tim_Hare
Works perfectly. Thank you.

1 Like