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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. run a application at a specified time

run a application at a specified time

Scheduled Pinned Locked Moved C#
csharpjavascripthelp
2 Posts 2 Posters 1 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.
  • D Offline
    D Offline
    dhol
    wrote on last edited by
    #1

    Hi I have to do a program in c# windows application such that form employs with a textbox, Progress bar, label and abutton. I have to use system.threading.timer such that , when a time is given in the textbox, (say 02:30 PM),then the progress bar progresses and at last after progress bar finishes , the label which is in the form should turn red colour at that specified time(ie, 02:30 PM).. How o do this .Please help me to do this application. js

    D 1 Reply Last reply
    0
    • D dhol

      Hi I have to do a program in c# windows application such that form employs with a textbox, Progress bar, label and abutton. I have to use system.threading.timer such that , when a time is given in the textbox, (say 02:30 PM),then the progress bar progresses and at last after progress bar finishes , the label which is in the form should turn red colour at that specified time(ie, 02:30 PM).. How o do this .Please help me to do this application. js

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      The Timer class doesn't kick off at a specified time. Rather, it counts down from a specified number of milliseconds and fires it's event. It then resets itself and repeatedly fires its event on that interval. If you want to check for a certain time, then you'll have to use a Timer to kick off code every minutes or so and check the current system time against your scheduled time. When the times match, then you can launch your process. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      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