Results 1 to 3 of 3

Thread: [RESOLVED] Checked network connection status

  1. #1

    Thread Starter
    Fanatic Member daimous's Avatar
    Join Date
    Aug 2005
    Posts
    657

    Resolved [RESOLVED] Checked network connection status

    hi guys! how can i check whether the status of my Network Connection is unplugged or plugged?

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Checked network connection status

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Fanatic Member daimous's Avatar
    Join Date
    Aug 2005
    Posts
    657

    Re: Checked network connection status

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width