hi guys! how can i check whether the status of my Network Connection is unplugged or plugged?
Printable View
hi guys! how can i check whether the status of my Network Connection is unplugged or plugged?
WMI comes to mind immediately, although you might also like to check out the implementation of My.Computer.Network.IsAvailable property and .NetworkAvailabilityChanged event from VB.NET and see if you can do something similar. Alternatively there are numerous pages on the Web explaining how to access the My namespace in C#, so you could probably use those members directly.
Thanks for that JM..I've just used the My.Computer.Network.IsAvailable. I found the tutorial on how to access the My namespace in C#.net here