Click here to Skip to main content
16,022,538 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
hello
How can I at a specific time to play an audio file by C# code in window application program.
Posted
Comments
Toli Cuturicu 26-Jul-10 10:02am    
Reason for my vote of 2
Question title has nothing to do with question content!

Hi try using timer control as below


            //ad 1: handle Elapsed event
            timer.Elapsed += new ElapsedEventHandler(OnElapsedTime);

            //ad 2: set interval to 1 minute (= 60,000 milliseconds)

            timer.Interval = 60000;

            //ad 3: enabling the timer
            timer.Enabled = true;

private void OnElapsedTime(object source, ElapsedEventArgs e)
       {
           // Call the audio file play function     
       }
 
Share this answer
 
Have a look at seek here[^].
 
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