S
sean.chapman
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.
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.