日期:2014-05-18 浏览次数:21200 次
Button tempB;//引用
//多个Button的click事件
Button1_click()
{
if(tempB==Null) tempB=Button1;
else if(tempB.Height > Button1.Height)//不知道给Button设一个值是啥意思 暂且用高度代替
Button1.Hide();//隐藏比较小的
else {
tempB.Hide();//还是隐藏小的
tempB=Button1;//改引用这个 点下一个的时候跟这个比较
}
}