how to use notification

G

Guest

Dear all,
I want to use the notification of opennet.win32 to play sound while device
is turned off, the sound will run when a timer events occur, i don't know how
to use it right.
anyone help me please?
Thanks in advance,
regards

Tamer Hesham
 
P

Paul G. Tobey [eMVP]

If the device is really off, you aren't gonig to be playing any sound.
Please be more specific about what you mean by this...

Paul T.
 
G

Guest

i asked 2 weeks ago, that i have an alarm that when the specified time comes
it will run a sound, maybe the device is turned off, someone answered me that
i have to use the notify to do this, so my question, how can i do that with
the notify?
 
P

Paul G. Tobey [eMVP]

You have to wake the device up when the time comes. There have been posts
in the past, some from me, about using CeRunAppAtTime() for causing an event
to be set at a given time. You could set up your application to do that,
wait on the event, when it fires, play the sound. I'm not sure if you can
figure out whether the device was asleep and was awakened only to notify you
or not, but, if you can, you could put the device back to sleep after that.

OpenNETCF has already wrapped this in the OpenNETCF.Win32.Notify
namespace...

Paul T.
 
G

Guest

I know that i have to use runAppAtTime(), but can I find a written example
for using this fn. in c# ?
 
P

Paul G. Tobey [eMVP]

In the vault archive of the SDF source, there's also the Notification
sample, which uses CeRunAppAtTime().

Paul T.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top