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. Setting System Time

Setting System Time

Scheduled Pinned Locked Moved Visual Basic
question
6 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.
  • N Offline
    N Offline
    Nic Rowan
    wrote on last edited by
    #1

    Does anyone know of a way to set the PC's system time in VB? Thanks NR_

    ------------------------------------------ I beat the internet - the end guy is hard.

    _

    H 1 Reply Last reply
    0
    • N Nic Rowan

      Does anyone know of a way to set the PC's system time in VB? Thanks NR_

      ------------------------------------------ I beat the internet - the end guy is hard.

      _

      H Offline
      H Offline
      Hesham Amin
      wrote on last edited by
      #2

      use SetLocalTime API function to set date and time.

      N 1 Reply Last reply
      0
      • H Hesham Amin

        use SetLocalTime API function to set date and time.

        N Offline
        N Offline
        Nic Rowan
        wrote on last edited by
        #3

        Yes I found it thanks - I was having trouble using the API but I finally figured out that the SystemDate Structure items had to be Short not Integer :)! Thanks_

        ------------------------------------------ I beat the internet - the end guy is hard.

        _

        B 2 Replies Last reply
        0
        • N Nic Rowan

          Yes I found it thanks - I was having trouble using the API but I finally figured out that the SystemDate Structure items had to be Short not Integer :)! Thanks_

          ------------------------------------------ I beat the internet - the end guy is hard.

          _

          B Offline
          B Offline
          Bo Hunter
          wrote on last edited by
          #4

          Calling the TimeOfDay and setting it does the samething.

          1 Reply Last reply
          0
          • N Nic Rowan

            Yes I found it thanks - I was having trouble using the API but I finally figured out that the SystemDate Structure items had to be Short not Integer :)! Thanks_

            ------------------------------------------ I beat the internet - the end guy is hard.

            _

            B Offline
            B Offline
            Bo Hunter
            wrote on last edited by
            #5

            Setting the TimeOfDay Property in Visual Basic does the samething.

            N 1 Reply Last reply
            0
            • B Bo Hunter

              Setting the TimeOfDay Property in Visual Basic does the samething.

              N Offline
              N Offline
              Nic Rowan
              wrote on last edited by
              #6

              Doh! Thanks :-D_

              ------------------------------------------ I beat the internet - the end guy is hard.

              _

              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