I am working on an exercise to create a custom control. The custom control is a simple label inheriting Control.
Using the tool tip code below:
m_toolTip = new ToolTip();
protected override void OnMouseMove(MouseEventArgs e) {
m_toolTip.SetToolTip(this, Text);
base.OnMouseMove(e);
}
protected override void OnMouseLeave(EventArgs e) {
m_toolTip.RemoveAll();
base.OnMouseLeave(e);
}
No configurations are used for the tool tip.
When I mouse over the label (although you can’t see the mouse):

Now, after I have left the control and moused over the second label:

When you hover the mouse over a MS Label, the tool tip will show up and then immediately disappears. How can I better duplicate the behavior that the standard MS label displays?
I resolved the issue with the following change:
I removed the previous
OnMouseMoveoverride.Additionally, I also tweaked some settings that seem to work for me.