473,396 Members | 1,866 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,396 software developers and data experts.

issue with SystemSounds and notifier Icon

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
1 1389
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: bob | last post by:
I'm trying to change the icon in the corner of my window, and I'm having trouble. I'm using Dev-C++, and I noticed it created this .RC file for me when I specified that I wanted to use a "Game"...
4
by: Terry | last post by:
There are a number of things about using unmanaged resources in Windows Forms programming that is unclear to me. In C++, if you loaded an icon resource using "ExtractIcon()", the resource was...
1
by: David Burkinshaw | last post by:
I have a form and I assigned an icon to it. For arguements sake let's say the icon is a smiley face. I compile, run, and save the program. The icon on the form shows up as a smiley face. At a later...
8
by: Adrian | last post by:
How do I put an icon on a form using code? Thank you.
5
by: John Salerno | last post by:
I just tried out the SystemSounds class, following along with C# Developer's Notebook, but it doesn't seem to work. I just put the following line on a button's click event, but when run the app and...
5
by: IcingDeath via DotNetMonster.com | last post by:
I am building this SQL Server database app in which i can store files. In order to display files I want to have the app show the associated icon for the extension of the file that is in the...
6
by: eSolTec, Inc. 501(c)(3) | last post by:
Thank you in advance for any and all assistance. I have an application that places a notifier icon in the start tray. When the application closes, the icon appears to stay, till I place my mouse...
1
by: kallol | last post by:
I have a simple HTML page where I have a form with in a <div style="height: 600px; width: 100%; overflow: auto;">. The mentioned div styles are mandatory to get the expected behavior of the div. ...
5
markrawlingson
by: markrawlingson | last post by:
Hey guys, Having a bit of a complicated issue here so please bare with me while I explain. I'm also not a system admin and don't know a whole lot about IIS, so i apologize in advance. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.