Detecting network connectivity in .net CFv2 - the old chestnut!

M

Martin Robins

Ok, I know this has been asked hundreds of times before (though for .net CF
1.0), but I want to detect when wired and/or wireless connections are made
or broken from within the .net CF 2.0 (the physical connection).

I have done something similar in 1.0 using ConnectionManager which would
connect if a connection was available and throw me an event when that
connection died, but is there anything new in the new framework?

I have looked at such classes as System.Net.NetworkInformation.NetworkChange
and System.Net.NetworkInformation.NetworkInterface, but none of these seem
to be supported on CF - have I missed some or is this still missing for
mobile development?

Thanks.
 
P

Peter Foot [MVP]

There isn't anything in the .NETCF to specifically address this scenario, on
Windows Mobile you can continue to use the ConnectionManager APIs for this
purpose.

Peter
 
M

Martin Robins

Thanks; was hoping there might be something new but there you go!

In the mean time, is there any way to programatically cater for
authentication across network file shares instead of having the OS dialog
pop up; I haven't been able to find anything for this either.

Martin.
 

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