ToolTip problem

  • Thread starter Thread starter Dennis
  • Start date Start date
D

Dennis

I am using VS2005. I have added a ToolTip control to my main form by
dragging it over from the ToolBox. I then add some text to the ToolTip
on... property of a button on the form. The button happens to be in a
TableLayoutPanel on a TabControl. The tooltip works fine at first. But
when I click the button and then close the dialog the button brings up,
the tooltip quits working.

Any idea what is happening here?
 
I am using VS2005. I have added a ToolTip control to my main form by
dragging it over from the ToolBox. I then add some text to the ToolTip
on... property of a button on the form. The button happens to be in a
TableLayoutPanel on a TabControl. The tooltip works fine at first. But
when I click the button and then close the dialog the button brings up,
the tooltip quits working.

Any idea what is happening here?

Never mind. Googling turned up pages that state that this is a known
bug. I even found a workaround.
 
Below is a workaround for a tooltip problem that has the same symptoms. I
don't know if this problem has been fixed by MS - the workaround is several
years old. But it is easy for you to try.

For all controls on your form that have a tooltip, handle the MouseEnter
event and code the following
MyTooltip.Active=False
MyTooltip.Active=True
where MyTooltip is the tooltip control. I am presuming that you have one
tooltip control serving potentially several controls on your form.

I know the workaround looks silly, but try it anyway. I am curious to know
if it works for you.
 
Below is a workaround for a tooltip problem that has the same symptoms. I
don't know if this problem has been fixed by MS - the workaround is several
years old. But it is easy for you to try.

For all controls on your form that have a tooltip, handle the MouseEnter
event and code the following
MyTooltip.Active=False
MyTooltip.Active=True
where MyTooltip is the tooltip control. I am presuming that you have one
tooltip control serving potentially several controls on your form.

I know the workaround looks silly, but try it anyway. I am curious to know
if it works for you.

That's exactly the workaround I was referring to. Except I used the
MouseLeave event. It seems to work well.
 
Back
Top