
Signature
The enclosed questions or comments are entirely mine and don't represent the
thoughts, views, or policy of my employer. Any errors or omissions are my
own.
You could run a Timer (Windows.Forms or Threading) and check periodically
the current DateTime and make your decision based on that (you could also
change the timer interval based on what DateTime returns). Obviously you
should also check the time just before executing the button_click code and
proceed as appropriate just to be safe.
Also see these previous threads on executing code at certain events, in case
it is relevant to you:
http://groups.google.com/group/microsoft.public.dotnet.framework.compactframewor
k/search?group=microsoft.public.dotnet.framework.compactframework&q=cerunappatev
ent
Cheers
Daniel
--
http://www.danielmoth.com/Blog/
>I posted this early this morning from home, but it doesn't appear the post
> ever arrived, so here is attempt #2. My apologies if the earlier post
[quoted text clipped - 14 lines]
> Thanks,
> Keith
KR - 20 Apr 2006 19:15 GMT
Actually, your last suggestion solves my problem in the most eloquent
fashion, and saves me from having to learn how to use threads just yet- I'll
simply check the time when the button is clicked, and only proceed if the
time is in the PM. <slaps forehead> ...why didn't I think of that....
:)
Thanks,
Keith
> You could run a Timer (Windows.Forms or Threading) and check periodically
> the current DateTime and make your decision based on that (you could also
[quoted text clipped - 4 lines]
> Also see these previous threads on executing code at certain events, in case
> it is relevant to you:
http://groups.google.com/group/microsoft.public.dotnet.framework.compactframewor
k/search?group=microsoft.public.dotnet.framework.compactframework&q=cerunappatev
ent
> Cheers
> Daniel
[quoted text clipped - 19 lines]
> > Thanks,
> > Keith