Connection event

D

D. Veloper

...a two-part question:

1)
How do I find out if my PPC is connected, either via Cradle, IrDA og WLAN?
There are buttons in my app that needs to be disabled in a disconnected
state.

2)
How do I detect when connection occurs? Is there a nifty little event for
this?
I want my app to automatically replicate data as soon as PPC is cradled or
otherwise connected.

My app is Written in VB.net

Thanks
DV
 
W

William Ryan eMVP

Hi D.Veloper
D. Veloper said:
..a two-part question:

1)
How do I find out if my PPC is connected, either via Cradle, IrDA og WLAN?
There are buttons in my app that needs to be disabled in a disconnected
state.

2)
How do I detect when connection occurs? Is there a nifty little event for
this?
I want my app to automatically replicate data as soon as PPC is cradled or
otherwise connected.

My app is Written in VB.net

Thanks
DV

Check out the Desktop Communication library at OpennetCf. Org
http://www.opennetcf.org/communication.asp

The RAPI library for instance has a .Connected Property that you can check
to verify a connection. I think everthing you'll need is contained there.


For further reference, you may want to check out Fox and Box's article from
TechEd 2003 at http://atomic.quilogy.com/mobility
I wrote a quick little article on using the device's IP address to determine
if you are cradled or not
http://www.knowdotnet.com/articles/activesynccradle.html but that approach
does have an inherenet shortcoming which I mention.

HTH,

Bill
 

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