Click here to Skip to main content
15,896,201 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I want to make a program that capture an image from web camera every specific time ... (capture a new image every 10 seconds)
I have the program to capture the image
I want the code of timer .. how i create timer and execute the code of capturing image every 10 seconds.

Please I want the Help in C# code
Thank you
Posted

1 solution

In the Toolbox there is a timer control.
The Interval property is in milliseconds.
So if you want 1 second set it to 1000.
if you want 10 seconds set it to 10000.
Double-clicking the timer gives you the Timer_Tick event.
Put your code you want to execute there.
Set the Enabled property to true when you want it to run.
 
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