fadein
fadein

Reputation: 71

.NET compact framework and ActiveSync

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?

Upvotes: 5

Views: 1223

Answers (3)

Abhijeet Kashnia
Abhijeet Kashnia

Reputation: 12880

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.

Upvotes: 0

mjf
mjf

Reputation: 357

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

Upvotes: 0

Related Questions