79508461

Date: 2025-03-14 08:22:34
Score: 0.5
Natty:
Report link

Though it's an older thread, wanted to share my findings. For me it was the combination of Kevin Doyon's answer, and using the MouseEnter event instead of MouseHover.

protected override void OnMouseEnter(EventArgs eventargs)
{
    toolTipError.SetToolTip(this, "Hello");
    toolTipError.Active = true;
}

protected override void OnMouseLeave(EventArgs eventargs)
{
    toolTipError.SetToolTip(this, null);
    toolTipError.Active = false;
}

I also preferred using method SetToolTip over Show. With SetToolTip the tooltip is shown at the expected position, with Show I needed to provide an offset (position determined using PointToClient(Cursor.Position)).

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Binary Thoughts