473,325 Members | 2,872 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Tooltip only shows once

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?
Jun 12 '07 #1
5 9778
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]
- mv*@spam.guard.caspershouse.com

"pete1969" <pe******@discussions.microsoft.comwrote in message
news:58**********************************@microsof t.com...
>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?

Jun 12 '07 #2
On Jun 12, 10:31 pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.comwrote:
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]
- m...@spam.guard.caspershouse.com

"pete1969" <pete1...@discussions.microsoft.comwrote in message

news:58**********************************@microsof t.com...
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

Jun 12 '07 #3
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[MCSD.Net]" wrote:
On Jun 12, 10:31 pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.comwrote:
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]
- m...@spam.guard.caspershouse.com

"pete1969" <pete1...@discussions.microsoft.comwrote in message

news:58**********************************@microsof t.com...
>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

Jun 12 '07 #4
What properties are you setting to achieve this five second delay when
showing the tool tip?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"pete1969" <pe******@discussions.microsoft.comwrote in message
news:18**********************************@microsof t.com...
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[MCSD.Net]" wrote:
>On Jun 12, 10:31 pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.comwrote:
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]
- m...@spam.guard.caspershouse.com

"pete1969" <pete1...@discussions.microsoft.comwrote in message

news:58**********************************@microsof t.com...

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


Jun 12 '07 #5
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 [.NET/C# MVP]" wrote:
What properties are you setting to achieve this five second delay when
showing the tool tip?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"pete1969" <pe******@discussions.microsoft.comwrote in message
news:18**********************************@microsof t.com...
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[MCSD.Net]" wrote:
On Jun 12, 10:31 pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.comwrote:
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]
- m...@spam.guard.caspershouse.com

"pete1969" <pete1...@discussions.microsoft.comwrote in message

news:58**********************************@microsof t.com...

>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



Jun 13 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Glenn | last post by:
I am showing a tooltip on a flexgrid control. The tooltip shows but stays visible the entire time the mouse is on the cell. How do I get the tooltip to disappear after some time. Further, if I...
5
by: Pavan | last post by:
My goal is to accomplish the tooltip functionality for all the neodes in a tree view and i have the following three Events in my C# application. Name of my TreeView Control (AITreeView) 1)...
2
by: puja | last post by:
hi all, i have a grid view where am displaying data from dataset. My dataset consists of columns Customer name, surname, date requested, sales person, file number , status and comments I am...
4
by: rn5a | last post by:
A DataList displays 3 columns - Product, Category & Price. These columns are populated with records from a SQL Server 2005 DB table. Apart from the above 3 DB columns that the resultset retrieves,...
2
by: dgk | last post by:
My co-worker, no idiot, says that the tooltip in the system tray for the SS2000 icon usually shows the computer and server, but once in a while shows the password (two slashes and the password). ...
3
by: Rainer Queck | last post by:
Hi NG, working on a project in VS2005 I started to add ToolTips. My problem now is, that each ToolTip only shows once. mouving the mouse over a button shows its tooltip, moving to the next...
16
by: Charles Law | last post by:
I have to take this personally now. Tooltips have been flakey since the dawn of .NET, but to still have to put up with a disappearing tooltip in VS 2008 is getting beyond a joke. Tooltips have...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.