Click here to Skip to main content
16,022,418 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,


i want to swap two images using timer controller in windows Form application, i am able to swap without timer, please explain with timer.
Posted
Comments
Toli Cuturicu 8-Dec-10 15:17pm    
Stop posting fake answers. This time I deleted them for you.

1 solution

Get Timer Control from ToolBox into your form and use your code with its Tick Event.

C#
private void timer1_Tick(object sender, EventArgs e)
{
    // Do your swap code here....
}


in Timer control make it
MIDL
timer1.Enabled = true;
timer1.Interval = 1000;


Here 1000 is equals to 1 sec.


Cheers,
Vasanth
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900