ShowBalloonTip Problem

S

Steve F

I'm having a timeout problem with NotifyIcon.ShowBalloonTip, but not the
problem commonly found.

Most people complain that the balloon shows up too long (even though this is
by design... I've done that reading), but the problem I'm having is the icon
is disappearing too quickly.

Even in an application that all I have is a Form, NotifyIcon and Button,
when the Button_Click action is set for

notifyIcon1.ShowBalloonTip(30000, "Title", "Text", ToolTipIcon.None);

The icon still disappears after 4-5 seconds. It was my understanding that
this code should make it disappear after 30 seconds. Even if it was set too
low, 5 seconds should be the minimum timeout.

Am I missing something?

-Steve
 
J

Jeroen Mostert

Steve said:
I'm having a timeout problem with NotifyIcon.ShowBalloonTip, but not the
problem commonly found.

Most people complain that the balloon shows up too long (even though
this is by design... I've done that reading), but the problem I'm having
is the icon is disappearing too quickly.

Even in an application that all I have is a Form, NotifyIcon and Button,
when the Button_Click action is set for

notifyIcon1.ShowBalloonTip(30000, "Title", "Text", ToolTipIcon.None);

The icon still disappears after 4-5 seconds. It was my understanding
that this code should make it disappear after 30 seconds. Even if it was
set too low, 5 seconds should be the minimum timeout.
From the documentation: "Minimum and maximum timeout values are enforced by
the operating system and are typically 10 and 30 seconds, respectively,
however this can vary depending on the operating system. Timeout values that
are too large or too small are adjusted to the appropriate minimum or
maximum value."

I don't know if these parameters are actually configurable (they likely are)
and if you have something installed that changes them, but in any case, you
cannot count on the timeout being enforced. For more details, you'll likely
need to delve into the details of the balloon tip control in Win32.
 

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