winform在禁用控件上显示工具提示

private void panelControl1_MouseMove(object sender, MouseEventArgs e)
{
DevExpress.XtraEditors.SimpleButton button = panelControl1.GetChildAtPoint(new Point(e.X, e.Y)) as DevExpress.XtraEditors.SimpleButton;
if (button != null && button.Name == "simpleButtonAppCallOut")
{
toolTipController1.ShowHint(button.ToolTip, MousePosition);

}
else
toolTipController1.HideHint();
}

效果如图:

 

posted on 2018-04-24 08:33  为生而活  阅读(257)  评论(0编辑  收藏  举报

导航