Network Detection

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When a user disconnects their wire to the network or those who use RAS disconnects - I need for my Winforms app to be informed the moment it happens. What is the best way to code this in C# ? Any examples or code snippets?
 
Demetri,

possibly you have to take a look at
http://msdn.microsoft.com/library/d...curity/receiving_connection_notifications.asp
and
http://msdn.microsoft.com/msdnmag/issues/02/08/SENS/default.aspx

Otherwise you might need to poll SystemInformation.Network.

HTH
Alex

Demetri said:
When a user disconnects their wire to the network or those who use RAS
disconnects - I need for my Winforms app to be informed the moment it
happens. What is the best way to code this in C# ? Any examples or code
snippets?
 
Back
Top