if (dq_gly.Yhm != "admin")
{
this.TabContainer1.Tabs[0].Visible = false;
this.TabContainer1.Tabs[1].Visible = false;
this.TabContainer1.Tabs[2].Visible = false;
this.TabContainer1.Tabs[4].Visible = false;
this.TabContainer1.Tabs[3].Visible = true;
this.TabContainer1.ActiveTabIndex = 3;//必须激活,否则只有一个选项卡时,仍然全部选项卡都不显示;当有2个以上选项卡可视时,系统默认有一个被自动激活。当只有一个选项卡可视时,系统不知道激活哪个
}
else
{
this.TabContainer1.Tabs[0].Visible = true;
this.TabContainer1.Tabs[1].Visible = true;
this.TabContainer1.Tabs[2].Visible = true;
this.TabContainer1.Tabs[4].Visible = true;
this.TabContainer1.Tabs[3].Visible = true;
}

posted on 2018-05-20 22:58  wslk  阅读(284)  评论(0编辑  收藏  举报