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. "Jumper" form

"Jumper" form

Scheduled Pinned Locked Moved C#
csharptutorial
4 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.
  • T Offline
    T Offline
    The Brazilian One
    wrote on last edited by
    #1

    Hi.. I´m from Brazil... I have an application (C#) that initializes on the "system tray"... I´d like to show some form from this application when time gets 3:00PM, for example... but, i´d like that the form "jump" into the screen... without click a button... that´s it.. sorry about the bad english.. thanks! Carlos A. Velloso Jr

    P A B 3 Replies Last reply
    0
    • T The Brazilian One

      Hi.. I´m from Brazil... I have an application (C#) that initializes on the "system tray"... I´d like to show some form from this application when time gets 3:00PM, for example... but, i´d like that the form "jump" into the screen... without click a button... that´s it.. sorry about the bad english.. thanks! Carlos A. Velloso Jr

      P Offline
      P Offline
      Parwej Ahamad
      wrote on last edited by
      #2

      make your application as service which check periadically for the specific time and show on system tray. or your make an exe which shedule in windows shedulin job on 3 pm

      Parwej Back...............DON of Developer....... Parwej Ahamad g_parwez@rediffmail.com

      1 Reply Last reply
      0
      • T The Brazilian One

        Hi.. I´m from Brazil... I have an application (C#) that initializes on the "system tray"... I´d like to show some form from this application when time gets 3:00PM, for example... but, i´d like that the form "jump" into the screen... without click a button... that´s it.. sorry about the bad english.. thanks! Carlos A. Velloso Jr

        A Offline
        A Offline
        aSarafian
        wrote on last edited by
        #3

        You can also create an application with a timer. This application will reside only in the tray and when the desired time or any other condition has been met it will show a new form on the dekstop.

        1 Reply Last reply
        0
        • T The Brazilian One

          Hi.. I´m from Brazil... I have an application (C#) that initializes on the "system tray"... I´d like to show some form from this application when time gets 3:00PM, for example... but, i´d like that the form "jump" into the screen... without click a button... that´s it.. sorry about the bad english.. thanks! Carlos A. Velloso Jr

          B Offline
          B Offline
          bobsugar222
          wrote on last edited by
          #4

          This is one way of doing it:

          private void Form1_Load(object sender, EventArgs e)
          {
          TimeSpan startTime = new TimeSpan(13, 40, 0);
          TimeSpan currentTime = DateTime.Now.TimeOfDay;
          TimeSpan diff = startTime - currentTime;
          if (diff.Ticks > 0)
          {
          timer1.Interval = (int)diff.TotalMilliseconds;
          timer1.Start();
          }
          }

          private void timer1_Tick(object sender, EventArgs e)
          {
          timer1.Stop();
          WindowState = FormWindowState.Normal;
          ShowInTaskbar = true;
          }

          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