我可以使用vb.net检测网络连接吗
问题描述:
我可以使用vb.net检测网络连接吗?我想开发一个可以在u连接到网络时同步文件的系统.
can i be able to detect network connect using vb.net i want to develop a system that can synchronize file when u connect to the network.
答
是,使用 NetworkAvailabilityChanged [此处 [ ^ ]:)
Yup, using the NetworkAvailabilityChanged[^]-event.
There''s an example on it''s usage here[^] :)