I am trying to use the timer to make a login form show after a specified
interval. However, if the interval is set to a value greater than 5000
nanosecond, then it does not respond. What could be the issue here? Thanks.
private void frmMain_Load(ob ject sender, EventArgs e)
{
this.timer = new Timer();
this.timer.Inte rval = 25000;
this.timer.Tick += new EventHandler(th is.timer_Tick);
Application.Idl e += new EventHandler(th is.Application_ Idle);
}
void Application_Idl e(object sender, EventArgs e)
{
this.timer.Stop ();
this.timer.Star t();
}
void timer_Tick(obje ct sender, EventArgs e)
{
frmLogin form = new frmLogin();
form.ShowDialog ();
}
--
L. A. Jones
--
L. A. Jones
interval. However, if the interval is set to a value greater than 5000
nanosecond, then it does not respond. What could be the issue here? Thanks.
private void frmMain_Load(ob ject sender, EventArgs e)
{
this.timer = new Timer();
this.timer.Inte rval = 25000;
this.timer.Tick += new EventHandler(th is.timer_Tick);
Application.Idl e += new EventHandler(th is.Application_ Idle);
}
void Application_Idl e(object sender, EventArgs e)
{
this.timer.Stop ();
this.timer.Star t();
}
void timer_Tick(obje ct sender, EventArgs e)
{
frmLogin form = new frmLogin();
form.ShowDialog ();
}
--
L. A. Jones
--
L. A. Jones
Comment