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

2021-07-15 21:13

阅读:563

标签:ide   ESS   orm   hint   hid   win   oid   out   eve   

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

效果如图:

技术分享图片

 

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

标签:ide   ESS   orm   hint   hid   win   oid   out   eve   

原文地址:https://www.cnblogs.com/lived/p/8926063.html


评论


亲,登录后才可以留言!