Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. [Message Deleted]

[Message Deleted]

Scheduled Pinned Locked Moved C#
8 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jijo BP
    wrote on last edited by
    #1

    [Message Deleted]

    D O 4 Replies Last reply
    0
    • J Jijo BP

      [Message Deleted]

      D Offline
      D Offline
      deepthi wilson
      wrote on last edited by
      #2

      Take internet explorer and type url.then press enter key. Deepthi Wilson

      J 1 Reply Last reply
      0
      • D deepthi wilson

        Take internet explorer and type url.then press enter key. Deepthi Wilson

        J Offline
        J Offline
        Jijo BP
        wrote on last edited by
        #3

        Deepthi this is not the place to make fun. ok.. I want a resonable logic in c#

        1 Reply Last reply
        0
        • J Jijo BP

          [Message Deleted]

          D Offline
          D Offline
          deepthi wilson
          wrote on last edited by
          #4

          http://www.developerfusion.co.uk/show/5346/[^]

          D 1 Reply Last reply
          0
          • D deepthi wilson

            http://www.developerfusion.co.uk/show/5346/[^]

            D Offline
            D Offline
            deepthi wilson
            wrote on last edited by
            #5

            using System ; using System.Runtime ; using System.Runtime.InteropServices ; public class InternetCS { //Creating the extern function... [DllImport("wininet.dll")] private extern static bool InternetGetConnectedState( int out Description, int ReservedValue ) ; //Creating a function that uses the API function... public static bool IsConnectedToInternet( ) { int Desc ; return InternetGetConnectedState( out Desc, 0 ) ; } }

            1 Reply Last reply
            0
            • J Jijo BP

              [Message Deleted]

              D Offline
              D Offline
              deepthi wilson
              wrote on last edited by
              #6

              using System ; using System.Runtime ; using System.Runtime.InteropServices ; public class InternetCS { //Creating the extern function... [DllImport("wininet.dll")] private extern static bool InternetGetConnectedState( out int Description, int ReservedValue ) ; //Creating a function that uses the API function... public static bool IsConnectedToInternet( ) { int Desc ; return InternetGetConnectedState( out Desc, 0 ) ; } }

              1 Reply Last reply
              0
              • J Jijo BP

                [Message Deleted]

                O Offline
                O Offline
                oykica
                wrote on last edited by
                #7

                This is a lot easier in .NET 2.0. Check out the new System.Net.NetworkInformation namespace. The NetworkInterface class contains a property called OperationalStatus that contains an Enumeration value indicating the current status. The namespace also contains a Ping class that you can use to check the availability of a specific address and a NetworkAvailabilityChangedEventHandler Delegate that you can hook up to methods that you want called when network availability changes. This should be a lot more fun than typing a URL into your browser. ;P

                J 1 Reply Last reply
                0
                • O oykica

                  This is a lot easier in .NET 2.0. Check out the new System.Net.NetworkInformation namespace. The NetworkInterface class contains a property called OperationalStatus that contains an Enumeration value indicating the current status. The namespace also contains a Ping class that you can use to check the availability of a specific address and a NetworkAvailabilityChangedEventHandler Delegate that you can hook up to methods that you want called when network availability changes. This should be a lot more fun than typing a URL into your browser. ;P

                  J Offline
                  J Offline
                  Jijo BP
                  wrote on last edited by
                  #8

                  Thank You I this this will solve my problems. Thanks again Jijo

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups