如何隐藏tabcontrol标签页 [英] How to hide tabcontrol tab pages

查看:258
本文介绍了如何隐藏tabcontrol标签页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在tabcontrol中使用了5个标签页。如果我在Combobox Tabpage1中选择OPTION1并且tabpage2可见。 Tabpage3,Tabpage4,Tabpage 5是不可见的。如果我选择OPTION2 5 Tabpages可见。我怎么能这样做



谢谢你

解决方案

假设你正在使用WinForm应用程序,你< b>无法隐藏 tabcontrol中的tabpage。您必须将其删除并稍后添加。

阅读本文以了解如何添加/删除它: http://www.dotnetspider.com/resources/18344-Hiding-Showing-Tabpages-Tabcontrol.aspx [ ^ ]



和如果你正在使用ASP应用程序,你可以使用可见属性。



-KR

I am using 5 tab pages in tabcontrol. If I choose OPTION1 in Combobox Tabpage1 and tabpage2 is in visible. Tabpage3,Tabpage4,Tabpage 5 are in invisible. If I choose OPTION2 5 Tabpages in visible. How can i do this

Thank You

解决方案

Assuming you're working WinForm application, you cannot hide the tabpage in tabcontrol. You have to remove it and later add it.
Read this for how to Add/Remove it: http://www.dotnetspider.com/resources/18344-Hiding-Showing-Tabpages-Tabcontrol.aspx[^]

And if you're working on ASP application, you can use the Visible property.

-KR


这篇关于如何隐藏tabcontrol标签页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆