如何将选定的选项卡设置为tabcontainer中的活动选项卡 [英] how to set a selected tab as an active tab in tabcontainer

查看:95
本文介绍了如何将选定的选项卡设置为tabcontainer中的活动选项卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将选定的选项卡设置为tabcontainer中的活动选项卡。



tabcontainer中有4个选项卡。我想在运行时更改活动选项卡索引属性。选择或打开的选项卡应该是活动的。



请参阅。很快。

解决方案

无论你想在哪里设置标签索引,都要使用

 TabContainer1.ActiveTabIndex =  0 ;  //  可以是1,2或3  


how to set a selected tab as an active tab in tabcontainer.

there r 4 tabs in tabcontainer . i want to change active tab index property at runtime. the tab which is selected or opened should be active.

pls. help soon.

解决方案

wherever you want to set the tab index use

TabContainer1.ActiveTabIndex = 0;//can be 1, 2 or 3


这篇关于如何将选定的选项卡设置为tabcontainer中的活动选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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