Private Sub Form_Load()
   Frame7(0).Visible = False
   Frame7(1).Visible = True
End SubPrivate Sub Command1_Click()
      Frame7(0).Visible = True
      Frame7(1).Visible = False
End SubPrivate Sub Command2_Click()
      Frame7(0).Visible = False
      Frame7(1).Visible = True
End Sub为什么frame7(1)就显示不了

解决方案 »

  1.   

    Private Sub Command1_Click()
      Frame7(0).Visible = True
      Frame7(1).Visible = False
    End Sub
    执行这段了?
    还是被盖住了,或者位置移动了
      

  2.   

    按command2. 一共有几个frame7?
      

  3.   

    实际上的程序是这样的Private Sub Command1_Click()
       Frame1(0).Visible = True
        Frame1(1).Visible = True
         Frame1(2).Visible = True
          Frame1(3).Visible = True
           Frame1(4).Visible = True
            Frame1(5).Visible = True
       Frame7(0).Visible = False
        Frame2.Visible = False
       
    End Sub
    Private Sub Command2_Click()
       Frame1(0).Visible = False
        Frame1(1).Visible = False
         Frame1(2).Visible = False
          Frame1(3).Visible = False
           Frame1(4).Visible = False
            Frame1(5).Visible = False
             
       Frame7(0).Visible = True
        Frame2.Visible = False
       
    End SubPrivate Sub Command3_Click()
      Frame1(0).Visible = False
        Frame1(1).Visible = False
         Frame1(2).Visible = False
          Frame1(3).Visible = False
           Frame1(4).Visible = False
            Frame1(5).Visible = False
      
       Frame7(0).Visible = False
        Frame2.Visible = True
      
    End Sub
    但我点击command3就是无法显示Frame2 
    不知程序哪出错了
      

  4.   

    Frame2也是控件数组?
    如果是应该这样
    Frame2(0).Visible = True
      

  5.   

    所有的FRAME都是容器,所以你是不是把Frame2放入到某个Frame1或Frame7里面了。这样Frame2的父容器不是窗体,而且某个FRAME,而这个FRAME的VISIBLE=FALSE,所以导致FRAME2显示不出来。
      

  6.   

    我如何查看,Frame2放入到某个Frame1或Frame7里面了?
      

  7.   


    楼主:你的代码中为什么没有对frame7(1)进行Visible设置呢?
      

  8.   

    同意。不用看了,把现有的 Frame7(1)删除,在窗体空白处重新画一个 Frame,更名为frame7(1)就搞定了。