Andrew Post your code !.AndrewZabar wrote: ↑Sunday 12th May 2024 1:27pm Really simple, to be honest.
Maybe I need to wait until the control is created? Where then would I put this code? This same code in the Form_Open() sub works perfectly with a tabStrip, just not a tabPanel.Code: Select all
Public Sub Form_Open() TabPanel1.Count = 3 End
I tried this...
Code: Select all
Public Sub Form_Open()
TabPanel1.Count = 3
Print TabPanel1.Count
End
you posted your example saying "Really simple, to be honest. "
But if that's all the code there is how do you know if you have 3 tabs or not?
So what do you try to do after that does not work for you or makes you think it's not working?