473,748 Members | 2,294 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Vis ible == true)
{
if (chkAlarm.Check ed)
{
System.Media.Sy stemSounds.Excl amation.Play();
}
FlashWindow(thi s.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 1415
On Nov 21, 1:22*pm, "sean.chap...@g mail.com" <sean.chap...@g mail.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.Vis ible == true)
* * * * * * {
* * * * * * * * if (chkAlarm.Check ed)
* * * * * * * * {
* * * * * * * * * * System.Media.Sy stemSounds.Excl amation.Play();
* * * * * * * * }
* * * * * * * * FlashWindow(thi s.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
3311
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" icon for the program itself. It contains this: /* THIS FILE WILL BE OVERWRITTEN BY DEV-C++ */ /* DO NOT EDIT! */ A ICON MOVEABLE PURE LOADONCALL DISCARDABLE "reversi.ico"
4
3731
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 valid until you called "DestroyIcon()". If you didn't, you had a leak. In C#, I need to load icons from unmanaged programs (.exe, dll) at run time and I want to make sure I'm not leaking resources, but it's not clear to me how to insure that I'm...
1
1513
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 date I reopen the project and decide to change the smiley icon to a frown. I edit the icon using the VS.NET editor, and save it. The build action for the icon is "Embedded Resource". I rebuild the project and the icon remains as a smiley. I then...
8
2281
by: Adrian | last post by:
How do I put an icon on a form using code? Thank you.
5
2749
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 click the button, there's no sound at all. SystemSounds.Asterisk.Play();
5
3172
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 database. Therefore the file doesnt really exist on the user's hard drive. All the file extracting techniques require that I have the actual file on the drive in order to get an icon for it. There is a workaround for this: i could create dummy files with...
6
1563
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 over it and then it will disappear. Can someone point in the direction of code to dispose of the notifier icon when the application closes? Michael
1
3209
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. Now, in Firefox, the page appears properly as expected. I can scroll down and up the div part by dragging the scroll bar by mouse and I can scroll down and up the div part by rolling up and down the mouse wheel as well. But I am facing the problem...
5
4334
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 discovered this morning an inconsitency within the application pools of our website. Basically, we have a maze of cluttered folders and other gargabe within the website - with one main folder, called /secured/ running from the root of the website, which...
0
8983
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8822
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9359
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9310
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9236
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6792
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6072
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
2774
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2206
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.