首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

tabpage切换有关问题

2012-12-27 
tabpage切换问题本帖最后由 diamond_back 于 2012-12-14 14:37:29 编辑TabControl上面有两个botton 1与bot

tabpage切换问题
本帖最后由 diamond_back 于 2012-12-14 14:37:29 编辑 TabControl上面有两个botton 1与botton2
选择tabpage1时,botton 2有效,botton 1无效
选择tabpage2时,botton 1有效,botton 2无效
[解决办法]

if(TablControl.SelectIndex==0)
{
button1.Enable=false;
button2.Enable=true;
}
if(TablControl.SelectIndex==1)
{
button2.Enable=false;
button1.Enable=true;
}

热点排行