Click here to Skip to main content
15,916,371 members

Comments by anilkumar.6714 (Top 10 by date)

anilkumar.6714 26-Nov-12 2:16am View    
just write the this.Close(); after f2.ShowDialog(); In timer1_Tick event.
This looks like the following
private void timer1_Tick(object sender, EventArgs e)
{
if (progressBar2.Value < 100)
{
progressBar2.Value += 2;
}
else
{
timer1.Stop(); // Before calling f2.ShowDialog(), stops the timer event
f2.ShowDialog();
this.Close();
}
}
anilkumar.6714 1-Jun-12 11:39am View    
Thank you
anilkumar.6714 1-Jun-12 11:39am View    
Thank you
anilkumar.6714 1-Jun-12 11:34am View    
Thank you
anilkumar.6714 23-May-12 21:42pm View    
I think when you are creating the table you declared 'Id' datatype as "int", int doesn't take null values, so your getting error like that.