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. Visual Basic
  4. sleep method in .Net

sleep method in .Net

Scheduled Pinned Locked Moved Visual Basic
csharphelptutorialquestion
4 Posts 2 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.
  • P Offline
    P Offline
    pnpfriend
    wrote on last edited by
    #1

    there maybe a thread asking how to use Sleep method in .Net. I know how to declare and use Sleep in VB 6.0, but I don't know how to use it in VB.Net I create a project in VB 6.0 and convert it back to VB.Net and copy and paste the converted code into my VB.Net project but .. I still get error.. Do I need any special header file to import to use Sleep()? thanks

    J 1 Reply Last reply
    0
    • P pnpfriend

      there maybe a thread asking how to use Sleep method in .Net. I know how to declare and use Sleep in VB 6.0, but I don't know how to use it in VB.Net I create a project in VB 6.0 and convert it back to VB.Net and copy and paste the converted code into my VB.Net project but .. I still get error.. Do I need any special header file to import to use Sleep()? thanks

      J Offline
      J Offline
      J Dunlap
      wrote on last edited by
      #2

      Just use System.Threading.Thread.Sleep().

      "Blessed are the peacemakers, for they shall be called sons of God." - Jesus
      "You must be the change you wish to see in the world." - Mahatma Gandhi

      P 1 Reply Last reply
      0
      • J J Dunlap

        Just use System.Threading.Thread.Sleep().

        "Blessed are the peacemakers, for they shall be called sons of God." - Jesus
        "You must be the change you wish to see in the world." - Mahatma Gandhi

        P Offline
        P Offline
        pnpfriend
        wrote on last edited by
        #3

        Thank you I though it only for thread.. not same as Sleep()

        J 1 Reply Last reply
        0
        • P pnpfriend

          Thank you I though it only for thread.. not same as Sleep()

          J Offline
          J Offline
          J Dunlap
          wrote on last edited by
          #4

          The Sleep() API does the exact same thing - in fact, System.Threading.Thread.Sleep() just calls the Sleep() API.

          "Blessed are the peacemakers, for they shall be called sons of God." - Jesus
          "You must be the change you wish to see in the world." - Mahatma Gandhi

          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