在Tabcontrol中禁用Tabpage [英] Disable Tabpage in Tabcontrol
本文介绍了在Tabcontrol中禁用Tabpage的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在标签控件中禁用标签页?
仅禁用,即它将显示,但无法选择.....
谢谢你,
How to Disable a tab page in a tab control?
Only Disable i.e. it will display but can''t select.....
Thank u,
推荐答案
在这里是 ^ ]来回答有关您的问题的MSDN文章.
Here''s a link [^] to article on MSDN that answers your question.
只需获取TabPage的实例并将其Enabled设置为false.
Simply get the instance of the TabPage and set it''s Enabled to false.
您可以在标签属性中执行Enabled = false.
you can do Enabled=false in tab properties.
这篇关于在Tabcontrol中禁用Tabpage的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文