1、画出两个同样大小紧挨着的command

2、画出两个同样大小的frame,并在frame各自加上一个label,拖动frame至tab1与tab2的边缘,这时frame1与frame2重合

3、编写简单的代码
Private Sub Command1_Click()
Frame1.Visible = True
Frame2.Visible = False
End Sub
Private Sub Command2_Click()
Frame2.Visible = True
Frame1.Visible = False
End Sub
4、分别点击tab1和tab2的效果

