Tabcontrol中Tab页面的可见属性 [英] visible property of Tab pages in Tabcontrol
问题描述
我正在使用VB 2008。
我有一个带有3页TABCONTROL的应用程序。每个页面都有一些其他控件和两个按钮。 2个按钮是ENABLE和DISABLE。现在我需要的是....
如果我点击TabPage1上的DISABLE按钮,那么TabPage2和TabPage3应该被禁用(不可选)。只有在单击ENABLE按钮后才会启用它。其他页面也应该如此。
我遇到的问题是我找不到TabPages的ENABLE或VISIBLE属性。我也希望这可以通过编程方式完成。
请快速帮助。此问题的任何解决方法。和代码....感谢所有人。
WPF TabPage控件公开您可以在单击事件处理程序中设置的Enabled属性
TabPage1.Enabled = false;
或
TabPage1.Enabled = true;
您可能还想玩CanSelect属性。
HTH
i am using VB 2008.
i have an applicaiton with a TABCONTROL with 3 pages. Each page has a few other controls and two buttons. the 2 buttons are ENABLE and DISABLE. now what I need is that....
if i click on DISABLE button on TabPage1 then the TabPage2 and TabPage3 should be disabled (not selectable). it will be ENABLED only after clicking on the ENABLE button. the same should happen with the other pages also.
the problem i am having is that i cannot find the ENABLE or the VISIBLE property of the TabPages. also i want this to be done programmatically.
quick help please. any workaround for this issue. and code.... thanks to all.
The WPF TabPage control exposes an Enabled property that you can set in your click event handler
TabPage1.Enabled = false;
or
TabPage1.Enabled = true;
You might also want to play with the CanSelect property.
HTH
这篇关于Tabcontrol中Tab页面的可见属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!