Triggering activesync event

G

Guest

Hi,

just the following problem: In my pocket pc (vb.net) application I need to
trigger (and handle) the event when the user initiates an ActiveSync event
(or better: when the activesync has finished). How can I do this?

I googled and I found a way to run an application everytime the user puts
the pocket pc in the cradle (and activesync is launched). But what I haven't
found is a way to trigger in a way, that only my handler (a vb.net function)
is called. Can anyone help?

Thanks a lot
Peter
 
G

Guest

Thanks for replying! But unfortunately, neither CeRunAppAtEvent or
CeSetUserNotification are able to call a function/sub (!) inside my running
vb.net program - or are they?

Thanks
Peter
 
P

Paul G. Tobey [eMVP]

You might try passing them a named event name, rather than an application
name. You'd have to fork off a thread in your program which would use
CreateEvent() to create an instance of the indicated named event, then call
CeRunAppAtEvent() to tell the notification system to fire the event when the
system 'event' occurs, then wait on that event and do the right thing when
the event is fired. Look at OpenNETCF's Notification class. It does this
with CeRunAppAtTime() and the format for the application name string is the
same as you'd use for CeRunAppAtEvent().

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