110,545
社区成员
发帖
与我相关
我的任务
分享
this.GotFocus += (sender, e) =>
{
list.Show();
};
this.LostFocus += (sender, e) =>
{
list.Hide();
};
private bool isHide;
public bool HideList
{
get{return isHide;}
set{
isHide=value;
if(isHide)
{
//这里添加隐藏下拉控件的代码,比如将它的visible属性设置为false
}
else
{
//显示控件
}
}
}