Re: Problem with Tabstrip and Frame
From: Bob Butler (tiredofit_at_nospam.com)
Date: 08/17/04
- Next message: Ken Halter: "Re: Problem with Tabstrip and Frame"
- Previous message: Bob Butler: "Re: Working with the MSFlexGrid"
- In reply to: Chris: "Problem with Tabstrip and Frame"
- Next in thread: Ken Halter: "Re: Problem with Tabstrip and Frame"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 16 Aug 2004 18:47:45 -0700
"Chris" <Chris@discussions.microsoft.com> wrote in message
news:01D97DC7-110C-405E-81AB-C3B1B71586D4@microsoft.com
> I am trying to create a tabstrip with frames. These frames are
> basically the containers for the tabs. I have stacked them one on
> top of the other and am using the visible attribute to show them ...
> However when I go from the first tab, to the third tab, it clears the
> frame but does not make the other one visible. Anyone see what I am
> doing wrong...here is the code...
>
> Private Sub TabStrip1_Click()
> Rem Form3.Text9.Text = TabStrip1.SelectedItem.Caption
>
> If Form3.TabStrip1.SelectedItem.Caption = "Admin" Then
> Form3.Frame1.Visible = True
> Form3.Frame2.Visible = False
Form3.Frame3.Visible = False
ElseIf Form3.TabStrip1.SelectedItem.Caption = "Schedule" Then
Form3.Frame1.Visible = False
> Form3.Frame2.Visible = True
> Form3.Frame3.Visible = False
ElseIf Form3.TabStrip1.SelectedItem.Caption = "Medications" Then
> Frame1.Visible = False
Frame2.Visible = False
> Frame3.Visible = True
>
> End If
You'd probably find it a lot easier of you made the frames into a control
array and adjust the Index values to match the tab indices. That way you
can use a loop to set them all easily.
-- Reply to the group so all can participate VB.Net... just say "No"
- Next message: Ken Halter: "Re: Problem with Tabstrip and Frame"
- Previous message: Bob Butler: "Re: Working with the MSFlexGrid"
- In reply to: Chris: "Problem with Tabstrip and Frame"
- Next in thread: Ken Halter: "Re: Problem with Tabstrip and Frame"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|