Programmatically hide/remove tabpages in VB.NET

后端 未结 3 1610
野的像风
野的像风 2021-01-19 23:48

I have 10 tabpages on my form. Based on an input in a textbox, I want to programmatically remove number of tab pages, i.e. if textbox input is 3 then only first 3 tabpages s

3条回答
  •  太阳男子
    2021-01-20 00:34

    Actually, there is another approach that works well to make up for the lack of a visibility property.

    On the tab page itself, set the parent property to Nothing to hide it. when you want to show the tab page, set the tabpage.parent to the tab control.

提交回复
热议问题