There is an issue with tooltips (tt) not redrawing. I have a form with
several controls and each control has different tt text. To insure that tt
text displays properly as I move the mouse, I handle each control's
MouseEnter event and do
tt.Active=false
tt.Active=true
With this code, all is well - tt's draw and erase as expected. If I comment
it out, mouse move/hover actions yield many cases where the tt is not
redrawn. You can search these newsgroups for tooltip for interesting reading.
In your case, you describe a user control with tt's that depend "on where
the mouse is on the control when the hover event occurs". Does this mean a
control whose MouseEnter event you can handle? If so, try my suggestion. If
not, are you tracking mouse movements yourself? Then as you transition into
an area where a new tooltip should be displayed, toggle tt.active off and on.
Good luck.
"Dennis" wrote:
I have implemented the ToolTip class for a user control that inheirits from
the panel. I show different tool tips depending on where the mouse is on the
control when the hover event occurs. However, if the mouse is moved to
another part of the control, the tooltip doesn't show again until the user
moves the mouse off the control then back on.
How do I reset the tooltip to show again when the mouse moves within the
panel to a different area?
--
Dennis in Houston