vb net tab page 隐藏和显示代码怎么写
1个回答
展开全部
见下面的代码
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
TabPage2.Parent = Nothing '隐藏TabPage2
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
TabPage2.Parent = TabControl1 '显示TabPage2
End Sub
End Class
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询