Question

Is there a way that my .NET CF app running on a Windows CE device can know when the device is docked/synced with the PC?

Was it helpful?

OTHER TIPS

See the following: Microsoft.WindowsMobile.Status and ConnectionsDesktopCount. If ConnectionsDesktopCount is > 0 then you are docked to a PC.

See the the SDK sample here http://msdn.microsoft.com/en-us/library/bb158637.aspx for a demo of how to use Microsoft.WindowsMobile.Status.

Thanks, Mike

I don't think this is it. Maybe, with WM 5.0 devices this could work, what about the older devices? They don't support this solution.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top