"Jumper" form
-
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
-
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
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
-
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
-
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
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;
}