That's not that easy...If you're using the 'normal' Tab Control, you've got to insert a picture box (or another container) for each Tab. Then, when you click on a Tab, you should get the Index of it and make the picture box visible...
Example: You've got a Tab Control called 'Tab1'. You've got 3 Tabs. That means the Index of 'Tab1' is from 0 to 2. Then you create 3 PictureBoxes and make an 'Array' of them. Means: They use the same name and have an Index. Now you've got 3 picboxes: Pic(0 to 2)
Then, when the user clicks on the tab - the procedure 'Tab1_Click(Index As Integer)' (or sth like that) is beeing used.
It's syntax:
code:
Code:
Private Sub Tab1_Click (Index As Integer)Dim X as Integer For X = 0 To 2 'Set all PiBoxes Invisible Pic(X).Visible = FALSE Next X 'Set the selected one Visible Pic(Index).Visible = TRUEEnd Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.