Hello, I’m working with a TabPanel and have created 5 tabs. I’ve now set up a TabChanged event and added this code:
If TabPanelParametres.SelectedTabIndex = 1 Then
MessageBox(‘Hello’)
End If
When I start the programme, I get three or four messages even though I haven’t selected any tab. However, this only happens if I close the programme and leave it closed on that tab; when I launch the programme again, those three or four messages appear. But if I set the TabPanel to a different index that doesn’t correspond to the one where I want the message to appear, then the messages don’t appear. Is this a programming error on my part, or is there a bug? Thank you.