Hey all,

I am using Visual Studio .Net 2003 for Windows Mobile 2003 devices.

Quick question..... I have an app on the PDA in which I would like to
disable various options, buttons, etc. if the PDA does not have a connection
to the network - say through wireless or via the cradle.

Is there some method or call that I can use to test whether or not I have an
active connection?

-- Andrew

Re: Check for connection ? by David

David
Tue Aug 16 14:33:55 CDT 2005

Andrew,

While there are various methods for determining actual network
connection, they will vary by device and possibly OS.

The way I did it for one of my apps was to just open a URL and see if I
got a good response. This can cause dialing if you have GPRS/CDMA or
other modems connected, but it's one way.


Good luck,

David
CTO
Soft360.com


AndrewR wrote:
> Hey all,
>
> I am using Visual Studio .Net 2003 for Windows Mobile 2003 devices.
>
> Quick question..... I have an app on the PDA in which I would like to
> disable various options, buttons, etc. if the PDA does not have a connection
> to the network - say through wireless or via the cradle.
>
> Is there some method or call that I can use to test whether or not I have an
> active connection?
>
> -- Andrew
>
>
>