C
Chintan
HI,
I am getting problem with splash screen showing while some other
process is going on. I have a timer which is not getting fired at the
interval set, when the long process is running on.
My code looks something like this,
btn_Click(object sender, System.EventArgs e)
{
timer1.Interval=100;
timer1.enabled=true;
panel1.visible=true;
// Some long running process
// While this process is going on i want to show progress bar updating
}
private void timer1_Tick(object sender, System.EventArgs e)
{
if (panel1.Visible == true)
{
if(progressBar1.Value==10)
{
progressBar1.Value=0;
}
progressBar1.Value = progressBar1.Value + 1;
}
}
So, while the long running process is going on, after every 100
milliseconds, the timer1_Tick should fire, and update the progressbar,
but the event is not getting fired at all. What am i doing wrong? How
can i solve the problem?
Thanks in Advance.
I am getting problem with splash screen showing while some other
process is going on. I have a timer which is not getting fired at the
interval set, when the long process is running on.
My code looks something like this,
btn_Click(object sender, System.EventArgs e)
{
timer1.Interval=100;
timer1.enabled=true;
panel1.visible=true;
// Some long running process
// While this process is going on i want to show progress bar updating
}
private void timer1_Tick(object sender, System.EventArgs e)
{
if (panel1.Visible == true)
{
if(progressBar1.Value==10)
{
progressBar1.Value=0;
}
progressBar1.Value = progressBar1.Value + 1;
}
}
So, while the long running process is going on, after every 100
milliseconds, the timer1_Tick should fire, and update the progressbar,
but the event is not getting fired at all. What am i doing wrong? How
can i solve the problem?
Thanks in Advance.