Hi,
Did anyone notice, the WinForm tooltip component cannot show again if
you click on a label?
The repro steps are quite simple:
Just create a simple Winform Application Project, put a label and a
tooltip component on the Form,
then set tooltip for the label control in designer.
Run the program, move cursor over the label, the tooltip shows up,
nice, now click the label.
the tooltip disappears, and now try moving the cursor in the label
again, you will never see tooltip again.
The small issue is killing me, I don't see any good way to around
this, since Tooltip is a Component, the APIs are just too clean to add
tricks.
Any pointers would be appreciated!
ClayB - 30 Aug 2007 18:23 GMT
If you just want to handle this case of the label click losing the
tooptip, then you can subscribe to the label's click event and reset
the tip there.
private void label1_Click(object sender, EventArgs e)
{
toolTip1.Active = false;
toolTip1.Active = true;
}
================
Clay Burch
Syncfusion, Inc.
jonny - 31 Aug 2007 13:07 GMT
Hi Clay,
It works great, thanks! I was digged too deep to win32 staffs and
hasn't think of the Active Property, thank for the point.
-Jonny
> If you just want to handle this case of the label click losing the
> tooptip, then you can subscribe to the label's click event and reset
[quoted text clipped - 9 lines]
> Clay Burch
> Syncfusion, Inc.