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. 1 1412
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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"
|
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...
|
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...
|
by: Adrian |
last post by:
How do I put an icon on a form using code?
Thank you.
|
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();
| |
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...
|
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
|
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...
|
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...
|
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...
|
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...
| |
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,...
|
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...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |