Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Do you have the tabstrip blues?? Check this out!!!

Status
Not open for further replies.

slimtimbodin

Programmer
Nov 16, 2001
11
I have yet to figure out how you add a picture box and buttons to the second, third, or fourth (etc..) tabs but I finally stumbled across this little VB addin that works great and solved my problem. Best yet its free!!! It allows you to switch and view all the different tabs during design time.


Tim
 
Not trying to discredit anyone, and I don't know if the difference is significant or not, but the SSTab in VB lets you click on each tab at design time too. Rob
Just my $.02.
 
Another thing you can do is create the control array of PictureBoxes (called picTabs here) and use this code to show the correct PictureBox at run time:

-------------------------------
Private Sub TabStrip1_Click()
Dim Pic As PictureBox

For Each Pic In picTabs
Pic.Visible = (Pic.index = TabStrip1.SelectedItem.index - 1)
Next

End Sub
-------------------------------

At design time you can "cascade" the picboxes so that you can easily select any one of them, and use the Ctrl+J key combination to bring it to the front which kind of simulates selecting different tabs at design time. Or instead of cascading them, you can line them up overlapping and select the one you need from the dropdown just above the properties window, then Ctrl+J again. It's not as simple as using the add-in, but it's just another tecnique to choose from if you want it. This is also easier to work with than the VB AppWizard's Option Dialog example which positions "invisible" picboxes at -20000, where you can't modify them without changing this first, then changing it back when ur done.

Happy Holidays!

~Mike
Any man willing to sacrifice liberty for security deserves neither liberty nor security.

-Ben Franklin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top