可以用sstab控件啊,比tabstrip控件好用

解决方案 »

  1.   

    用ZOrder:Private Sub tsTabStrip_Click()
        tsTabStrip.ZOrder 2
        Select Case tsTabStrip.SelectedItem.Key
            Case "UnDisposeTask"
                Frame1.Visible = True
                Frame1.ZOrder 0            'dgdatagrid.Visible = True
                Frame2.Visible = False
                'Frame3.Visible = False
            Case "TaskContent"
                Frame2.Visible = True
                Frame1.ZOrder 0            Frame1.Visible = False
                'Frame3.Visible = False
                'dgdatagrid.Visible = False
            Case "TaskStream"
                'Frame3.Visible = False
                Frame2.Visible = True
                Frame1.ZOrder 0            Frame1.Visible = False
                'dgdatagrid.Visible = False
            End Select
    End Sub
      

  2.   

    对,zorder的作用就是排列控件的顺序   zorder的中文名就是z 顺序  
      

  3.   

    我觉的还是用sstab好些!好控制多了,而且不要用到那么多的frame
      

  4.   

    Sorry,后两个Case是 Frame2.ZOrder 0