Re: Problem with Tabstrip and Frame

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Bob Butler (tiredofit_at_nospam.com)
Date: 08/17/04


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"


Relevant Pages

  • Re: Tabbed Dialog vs. Tabstrip
    ... The SSTab is a throwback for applications written in earlier versions of VB ... As Dimitriy points out both controls have strengths and weaknesses. ... visibility/position of the frames in response to a tab click. ...
    (microsoft.public.vb.controls)
  • Re: WMP cannot find yuy2/yv12 colour filters
    ... DivX Decoder Filter ... Frames played: 343 ... Average synchronic displacement: 0 ms ... Direct Draw(second tab): ...
    (microsoft.public.windowsmedia)
  • Re: Getting my Radio Buttons to work on a form I designed
    ... When I made the field (under the Properties, Value Tab) it asked me to Name ... Sue Mosher, Outlook MVP ... So out of the three frames that I have created ... I have used check boxes and radio buttons both throughout the form ...
    (microsoft.public.outlook.program_forms)
  • Problem with Tabstrip and Frame
    ... I am trying to create a tabstrip with frames. ... containers for the tabs. ... tab, to the third tab, it clears the frame but does not make the other one ...
    (microsoft.public.vb.controls)
  • Tab order on User Form not working
    ... I have set the tab order on a user form using the View>Tab Order. ... form has a number of frames and within the frames are controls. ... changes the numbers I assign to the Tab Index. ...
    (microsoft.public.excel.programming)