Show/Hide Frames

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jacobevans
    New Member
    • Aug 2007
    • 26

    Show/Hide Frames

    I'm making a program in vb6 where i have command buttons down the side which show/hide the 5 frames

    i tried frame.visible, frame(index).vi sible, frame(index).vi sible = true

    none work

    any tips?
  • hariharanmca
    Top Contributor
    • Dec 2006
    • 1977

    #2
    Originally posted by jacobevans
    I'm making a program in vb6 where i have command buttons down the side which show/hide the 5 frames

    i tried frame.visible, frame(index).vi sible, frame(index).vi sible = true

    none work

    any tips?
    [CODE=vb]frame.visible, frame(index).vi sible, frame(index).vi sible = true[/CODE]
    Here, is frame is a control name?
    (if that is a control name then it should work
    Or better post what you had tried.

    Comment

    • QVeen72
      Recognized Expert Top Contributor
      • Oct 2006
      • 1445

      #3
      Hi,

      If all the Frames are in a Control array, then u have to loop thru all of them and hide/show them. else u have to hide/show individually :

      if control array :

      [code=vb]
      Dim i As Integer
      For i=0 to 4
      Frame1(i).Visib le = False
      Next
      [/code]

      Or :

      [code=vb]
      Frame1.Visible = False
      Frame2.Visible = False
      Frame3.Visible = False
      Frame4.Visible = False
      Frame5.Visible = False
      [/code]

      Regards
      Veena

      Comment

      Working...