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;
}