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. Reminder

Reminder

Scheduled Pinned Locked Moved C#
testingbeta-testing
5 Posts 4 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.
  • S Offline
    S Offline
    soneliso
    wrote on last edited by
    #1

    i created a remider project. But now all I want is when its 1 oclock, the program display a pop up message "Testing!!!" even if the project is close.

    G C A 3 Replies Last reply
    0
    • S soneliso

      i created a remider project. But now all I want is when its 1 oclock, the program display a pop up message "Testing!!!" even if the project is close.

      G Offline
      G Offline
      Giorgi Dalakishvili
      wrote on last edited by
      #2

      If the program is not running it can't check time and display pop-up

      1 Reply Last reply
      0
      • S soneliso

        i created a remider project. But now all I want is when its 1 oclock, the program display a pop up message "Testing!!!" even if the project is close.

        C Offline
        C Offline
        CPallini
        wrote on last edited by
        #3

        You can either use SchTasks) to schedule the start-up of your application at givent time or write you own service to do that. :)

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

        S 1 Reply Last reply
        0
        • C CPallini

          You can either use SchTasks) to schedule the start-up of your application at givent time or write you own service to do that. :)

          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

          S Offline
          S Offline
          soneliso
          wrote on last edited by
          #4

          Thanks I have something with it. Please don't be mad at me when i have a program again with this You are what you are

          1 Reply Last reply
          0
          • S soneliso

            i created a remider project. But now all I want is when its 1 oclock, the program display a pop up message "Testing!!!" even if the project is close.

            A Offline
            A Offline
            AFSEKI
            wrote on last edited by
            #5

            Add a timer, handle its Tick event, compare DateTime.Now.Hours to 1 or 13 and show a MessageBox. If it your timer continues to fire Tick events when the MessageBox is still displaying (while you are sleeping for example ;) ) then you should create a custom Message Box from Form class and store a reference to it in you application like: Reminder : Form { } MyApplication : Form { Reminder reminderForm = null; myTime_Tick(...) { if(reminderForm != null && !reminderForm.Disposing) { reminderForm.Dispose(); reminderForm = null; } else { reminderForm = new ReminderForm(); reminderForm.Show(); } } } or you should be able to just hide and show the reminder form instead of disposing and recreating it.

            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