Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old February 28th, 2004, 05:45 PM
Registered User
 
Join Date: Feb 2004
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to perignon Send a message via MSN to perignon
Default TabsStrip and Multipage

Hi,

I'm trying to use tabs in a form and I'm running into a lot of trouble. If I use TabStrip I can't find a way to get other controls to show up with a single tab. They always just fly on top (or under) the whole thing. I can do that with Multipage, but I need to write code for some of the controls and I don't know where to do it because I can't find the controls listed in the code editor. Any ideas?

I would really appreciate help with either of them!

Thanks!

  #2 (permalink)  
Old March 1st, 2004, 04:14 AM
Registered User
 
Join Date: Mar 2004
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi perignon,

when u use the TabStrip, did u use a container control, e.g PictureBox to contain the other controls like textbox and labels? let say u have 2 tabs, tab1 and tab2. Use picbox1 to contain the controls for tab1 and picbox2 to contain the controls for tab2. Then later at the tabstrip code:

Private Sub TabStrip1_Click()
Dim mintCount As Integer

    For mintCount = 0 To TabStrip1.Tabs.Count - 1
        If mintCount = TabStrip1.SelectedItem.Index - 1 Then
            picBox(mintCount).Visible = True
        Else
            picBox(mintCount).Visible = False
        End If
    Next
End Sub

this should work for TabStrip~
hope i helped u on tis! =)



Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA Multipage Suhaskurse Access VBA 2 June 1st, 2011 01:57 PM
multipage activate Fat_and_immoral Excel VBA 5 March 7th, 2007 02:03 PM
PHP Multipage to look like one Lofa PHP How-To 2 September 5th, 2006 12:52 PM
use of multipage MANOJMETAL VS.NET 2002/2003 0 April 17th, 2004 01:29 AM
Multipage Menu LHaines Classic ASP Basics 1 June 3rd, 2003 07:05 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.