How to keep ToolTips showing


G

Guest

It looks like I can't set AutoPopDelay to be longer than 5 seconds -- which
is barely enough time to read some of my tooltips.

The documentation suggests that if I don't like that I should use
ToolTip.Show, but there is no example and I can't get it to work.

I created two functions to link to my control's MouseEnter and MouseLeave
events, and I can see them being called at the appropriate times, but the
tooltip does not appear anywhere that I can see.

private void Show_RollingWindowTip(object sender, EventArgs e)
{
Console.WriteLine("Called show");
toolTip1.Show("Explanation of this control.", this);
}
private void Hide_RollingWindowTip(object sender, EventArgs e)
{
Console.WriteLine("Called hide");
toolTip1.Hide(this);
}

In contrast, when I had simply set
toolTip1.SetToolTip(m_control, "Explanation of this control.");
the ToolTip did work, but it disappeared too quickly.

How can I correctly implement Show and Hide on a Form's control? Or else is
there a more elegant solution to keeping the ToolTip up?
 
Ad

Advertisements

K

Kevin Yu [MSFT]

Hi,

I tried it on my machine, but it seems that I cannot reproduce this on my
machine. I'm settting AutoPopDelay to 20000. Then the tooltip will display
20 sec. Here is a sample that I set the tooltip for a window.

this.toolTip1.SetToolTip(this, "aaa");

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
G

Guest

I should have clarified that I'm doing this in VS2005 / .NET 2.0. I don't
see the 5000 limit in .NET 1.1.
 
Ad

Advertisements

K

Kevin Yu [MSFT]

Hi,

I tried the ToolTip.Show method, but I also can't make it display more than
5 sec. I researched the ToolTip.Show method with the Reflector. It uses a
timer to count the time for the duration of the tooltip. There seems to be
something wrong with the timer. If this problem is important to you, I
suggest you contact Microsoft PSS for a hotfix. You can find the contact
information from the following link:

http://support.microsoft.com/default.aspx?scid=fh;EN-US;OfferProPhone

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top