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();
}
效果如图: