TabControl - Programatically 'opening' tabpages
Is it possible to programatically open a TabControl to a specific TabPage? You can programatically detect which page is open using:
Dim x As Integer
For x = 0 To TabControl1.TabPages.Count - 1
If TabControl1.TabPages(x).Visible = True Then
'Do something
'end sub
End If
Next
But the logic doesn't work in reverse. I can't use the visible property to set which page is open. I have unsucesssully tried a number of other properties/methods but maybe I am barking up the wrong tree...
Any ideas would be greatly appreciated.
|