Tooltip only shows once


G

Guest

I use Visual Studio 2005 and created a very simple Form with one button. I
added a Tooltip for that button. It shows fine the first time I hover over
that button. But if I let it disappear by the maximum time it should be
displayed, it never shows again over that button. Is that intended? And what
can I do to make it show again?
 
Ad

Advertisements

N

Nicholas Paldino [.NET/C# MVP]

What do you mean by the maximum time it should be displayed? AFAIK, if
you have the cursor on a control, and a tooltip is displayed, then assuming
that the focus is not changed by some other event (like a timer in a program
for some reason) and you don't provide any input (through mouse or
keyboard), then the tool tip will remain indefinitely.
 
A

Aneesh Pulukkul[MCSD.Net]

What do you mean by the maximum time it should be displayed? AFAIK, if
you have the cursor on a control, and a tooltip is displayed, then assuming
that the focus is not changed by some other event (like a timer in a program
for some reason) and you don't provide any input (through mouse or
keyboard), then the tool tip will remain indefinitely.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)




I use Visual Studio 2005 and created a very simple Form with one button. I
added a Tooltip for that button. It shows fine the first time I hover over
that button. But if I let it disappear by the maximum time it should be
displayed, it never shows again over that button. Is that intended? And
what
can I do to make it show again?- Hide quoted text -

- Show quoted text -

try setting ShowAlways property true. This is make persisting tooltip
while the form is inactive. Didn't get your problem clearly
 
G

Guest

Sorry, I might not have described it clearly. Another attempt:

The tooltip is set to be displayed over the button after hovering for a
second. Then if keep on hovering the tooltip should away after 5 seconds. So
far everything works as intended.

If I let the tooltip be displayed over the button and move the mouse away
before those 5 seconds maximum time has passed, the tooltip goes away and if
I move the mouse over the button again, the tooltip is displayed again. Still
everything is good so far.

But if I move the mouse ofther that button, let the tooltip be displayed and
wait the rest of those 5 seconds and the tooltip disappears because of that
maximum time has passed and the tooltip disappears, I can move the mouse away
and back over that button, but the tooltip does not reappear again.

And even if I have a second button with another tooltip, I can hover over
that other button and let that tooltip show, over that first button, the
tooltip is never be displayd again.

I hope I have not confused anyone even more this time.

Aneesh Pulukkul said:
What do you mean by the maximum time it should be displayed? AFAIK, if
you have the cursor on a control, and a tooltip is displayed, then assuming
that the focus is not changed by some other event (like a timer in a program
for some reason) and you don't provide any input (through mouse or
keyboard), then the tool tip will remain indefinitely.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)




I use Visual Studio 2005 and created a very simple Form with one button. I
added a Tooltip for that button. It shows fine the first time I hover over
that button. But if I let it disappear by the maximum time it should be
displayed, it never shows again over that button. Is that intended? And
what
can I do to make it show again?- Hide quoted text -

- Show quoted text -

try setting ShowAlways property true. This is make persisting tooltip
while the form is inactive. Didn't get your problem clearly
 
N

Nicholas Paldino [.NET/C# MVP]

What properties are you setting to achieve this five second delay when
showing the tool tip?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

pete1969 said:
Sorry, I might not have described it clearly. Another attempt:

The tooltip is set to be displayed over the button after hovering for a
second. Then if keep on hovering the tooltip should away after 5 seconds.
So
far everything works as intended.

If I let the tooltip be displayed over the button and move the mouse away
before those 5 seconds maximum time has passed, the tooltip goes away and
if
I move the mouse over the button again, the tooltip is displayed again.
Still
everything is good so far.

But if I move the mouse ofther that button, let the tooltip be displayed
and
wait the rest of those 5 seconds and the tooltip disappears because of
that
maximum time has passed and the tooltip disappears, I can move the mouse
away
and back over that button, but the tooltip does not reappear again.

And even if I have a second button with another tooltip, I can hover over
that other button and let that tooltip show, over that first button, the
tooltip is never be displayd again.

I hope I have not confused anyone even more this time.

Aneesh Pulukkul said:
What do you mean by the maximum time it should be displayed?
AFAIK, if
you have the cursor on a control, and a tooltip is displayed, then
assuming
that the focus is not changed by some other event (like a timer in a
program
for some reason) and you don't provide any input (through mouse or
keyboard), then the tool tip will remain indefinitely.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)





I use Visual Studio 2005 and created a very simple Form with one
button. I
added a Tooltip for that button. It shows fine the first time I hover
over
that button. But if I let it disappear by the maximum time it should
be
displayed, it never shows again over that button. Is that intended?
And
what
can I do to make it show again?- Hide quoted text -

- Show quoted text -

try setting ShowAlways property true. This is make persisting tooltip
while the form is inactive. Didn't get your problem clearly
 
Ad

Advertisements

G

Guest

Here is the code:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Test
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();

ToolTip tooltip = new ToolTip();
tooltip.AutomaticDelay = 500;
tooltip.SetToolTip(button1, "Hallo");
}
}
}

Where button1 obviously is a Button. And it doesn't make a difference if I
set the three properties AutoPopDelay, InitialDelay, ReshowDelay seperately.



Nicholas Paldino said:
What properties are you setting to achieve this five second delay when
showing the tool tip?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

pete1969 said:
Sorry, I might not have described it clearly. Another attempt:

The tooltip is set to be displayed over the button after hovering for a
second. Then if keep on hovering the tooltip should away after 5 seconds.
So
far everything works as intended.

If I let the tooltip be displayed over the button and move the mouse away
before those 5 seconds maximum time has passed, the tooltip goes away and
if
I move the mouse over the button again, the tooltip is displayed again.
Still
everything is good so far.

But if I move the mouse ofther that button, let the tooltip be displayed
and
wait the rest of those 5 seconds and the tooltip disappears because of
that
maximum time has passed and the tooltip disappears, I can move the mouse
away
and back over that button, but the tooltip does not reappear again.

And even if I have a second button with another tooltip, I can hover over
that other button and let that tooltip show, over that first button, the
tooltip is never be displayd again.

I hope I have not confused anyone even more this time.

Aneesh Pulukkul said:
On Jun 12, 10:31 pm, "Nicholas Paldino [.NET/C# MVP]"
What do you mean by the maximum time it should be displayed?
AFAIK, if
you have the cursor on a control, and a tooltip is displayed, then
assuming
that the focus is not changed by some other event (like a timer in a
program
for some reason) and you don't provide any input (through mouse or
keyboard), then the tool tip will remain indefinitely.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)





I use Visual Studio 2005 and created a very simple Form with one
button. I
added a Tooltip for that button. It shows fine the first time I hover
over
that button. But if I let it disappear by the maximum time it should
be
displayed, it never shows again over that button. Is that intended?
And
what
can I do to make it show again?- Hide quoted text -

- Show quoted text -

try setting ShowAlways property true. This is make persisting tooltip
while the form is inactive. Didn't get your problem clearly
 
Ad

Advertisements


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