471,325 Members | 1,654 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,325 software developers and data experts.

How to keep ToolTips showing

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?

Dec 27 '05 #1
3 10864
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."

Dec 27 '05 #2
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.

"Kevin Yu [MSFT]" wrote:
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."

Dec 27 '05 #3
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...;OfferProPhone

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

Dec 28 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Billy Greening | last post: by
1 post views Thread by Bernie Yaeger | last post: by
4 posts views Thread by Jeff Beem | last post: by
8 posts views Thread by Mitchell Vincent | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.