By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,501 Members | 2,797 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,501 IT Pros & Developers. It's quick & easy.

issue with SystemSounds and notifier Icon

P: n/a
I've got a portion of this program that has a timer setup. On the
interval I am checking to see if some stuff is changed then want to
play the exclamation sound until it has been noticed and acknowledged
by the user.

void flashTimer_Tick(object sender, EventArgs e)
{
if (pictureYes.Visible == true)
{
if (chkAlarm.Checked)
{
System.Media.SystemSounds.Exclamation.Play();
}
FlashWindow(this.Handle, true);
}
}

problem is, the sound doesn't play. I was also running into this with
the showBubble with the notifier icon. Is there something special I
need to do for this?

I've tried making the call in a delegate and doing an invoke, also
tried a begininvoke with no luck.
Nov 21 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Nov 21, 1:22*pm, "sean.chap...@gmail.com" <sean.chap...@gmail.com>
wrote:
I've got a portion of this program that has a timer setup. On the
interval I am checking to see if some stuff is changed then want to
play the exclamation sound until it has been noticed and acknowledged
by the user.

* * * * void flashTimer_Tick(object sender, EventArgs e)
* * * * {
* * * * * * if (pictureYes.Visible == true)
* * * * * * {
* * * * * * * * if (chkAlarm.Checked)
* * * * * * * * {
* * * * * * * * * * System.Media.SystemSounds.Exclamation.Play();
* * * * * * * * }
* * * * * * * * FlashWindow(this.Handle, true);
* * * * * * }
* * * * }

problem is, the sound doesn't play. I was also running into this with
the showBubble with the notifier icon. Is there something special I
need to do for this?

I've tried making the call in a delegate and doing an invoke, also
tried a begininvoke with no luck.
Nevermind the sound issue (didn't have a system sound specified in
windows)
The bubble is still an issue though. I'd step through and see the call
to showballon.. but it would not come up.
Nov 21 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.