From: Karsten Baumann on
Hello NG,

I want to program an application (VB .NET), which starts in specific
intervals and display notifications. Then the program should be ended.
The app starts with CeRunAppAtTime and shows a notification with a
Microsoft.WindowsCE.Forms.Notification. So far so good.

The problem is, when the user does not close the notification. The app is
already running and does not show another notification.
Which event shows me, when a application is activated???

Karsten

From: Paul G. Tobey [eMVP] paultobey _at_ earthlink _dot_ on
So, what you want to do is to keep the application running, or that's the
problem? You could set up a timer so that, if the user doesn't dismiss the
notification in 15 seconds, say, it dismisses itself and the application
closes, if you want the application to always close.

Paul T.

"Karsten Baumann" wrote:

> Hello NG,
>
> I want to program an application (VB .NET), which starts in specific
> intervals and display notifications. Then the program should be ended.
> The app starts with CeRunAppAtTime and shows a notification with a
> Microsoft.WindowsCE.Forms.Notification. So far so good.
>
> The problem is, when the user does not close the notification. The app is
> already running and does not show another notification.
> Which event shows me, when a application is activated???
>
> Karsten
>
From: Karsten Baumann on
The message tells the user that in the night a sms was sent and call the
function CeRunAppAtTime to start the app on the following day. If the
program is running that does not work...

Karsten

"Paul G. Tobey [eMVP]" <paultobey _at_ earthlink _dot_ net> schrieb im
Newsbeitrag news:66A6C277-DE29-4190-AD62-2BF24D02A650(a)microsoft.com...
> So, what you want to do is to keep the application running, or that's the
> problem? You could set up a timer so that, if the user doesn't dismiss
> the
> notification in 15 seconds, say, it dismisses itself and the application
> closes, if you want the application to always close.
>
> Paul T.


From: Paul G. Tobey [eMVP] paultobey _at_ earthlink _dot_ on
Yes, that's as-intended. What's the problem? That 1) the program is still
running and you want to know how to stop it (see my previous message), or 2)
you want it to be able to still be running and to handle that?

If 2), then you need to make two CeRunAppAtTime calls, one to run the
application, in case it is not still running, and one to trigger a named
event which the application will create. The application needs to set a
thread to wait on the event, for that case.

Paul T.

"Karsten Baumann" wrote:

> The message tells the user that in the night a sms was sent and call the
> function CeRunAppAtTime to start the app on the following day. If the
> program is running that does not work...
>
> Karsten
>
> "Paul G. Tobey [eMVP]" <paultobey _at_ earthlink _dot_ net> schrieb im
> Newsbeitrag news:66A6C277-DE29-4190-AD62-2BF24D02A650(a)microsoft.com...
> > So, what you want to do is to keep the application running, or that's the
> > problem? You could set up a timer so that, if the user doesn't dismiss
> > the
> > notification in 15 seconds, say, it dismisses itself and the application
> > closes, if you want the application to always close.
> >
> > Paul T.
>
>
From: Karsten Baumann on
Thanks! I will try this ;o)

Karsten

"Paul G. Tobey [eMVP]" <paultobey _at_ earthlink _dot_ net> schrieb im
Newsbeitrag news:3823229F-2743-444A-BEEC-E6C935DCA197(a)microsoft.com...
> Yes, that's as-intended. What's the problem? That 1) the program is
> still
> running and you want to know how to stop it (see my previous message), or
> 2)
> you want it to be able to still be running and to handle that?
>
> If 2), then you need to make two CeRunAppAtTime calls, one to run the
> application, in case it is not still running, and one to trigger a named
> event which the application will create. The application needs to set a
> thread to wait on the event, for that case.
>
> Paul T.