11-25-2011, 08:34 PM
Hello SF!
Today I will show you the said subject.
In your Form, Select the Two Timers i.e timer1 and time2. Set the properties as below
timer1 > Enabled = true , Timer = 1
timer2 > Enabled = false , Timer = 1
In your exit application button, use this code...
Now Double click on timer1 and timer2 respectively and add this code.
In your Form, Select Opacity = 0%
Thats it!! Tell me how is this work?
Hope you like it.
Regards
Today I will show you the said subject.
In your Form, Select the Two Timers i.e timer1 and time2. Set the properties as below
timer1 > Enabled = true , Timer = 1
timer2 > Enabled = false , Timer = 1
In your exit application button, use this code...
Code:
private void btnExitApplication_Click(object sender, EventArgs e)
{
timer1.Enabled = false;
timer2.Enabled = true;
}
Now Double click on timer1 and timer2 respectively and add this code.
Code:
private void timer1_Tick(object sender, EventArgs e)
{
Opacity += 0.03;
if (Opacity == 100)
{
timer1.Enabled = false;
}
}
private void timer2_Tick(object sender, EventArgs e)
{
Opacity -= 0.03;
if (Opacity == 0)
{
ProjectData.EndApp();
}
}
In your Form, Select Opacity = 0%
Thats it!! Tell me how is this work?
Hope you like it.
Regards