Hi, Im developing a simple alarm clock application for smart device application. Can anyone help me on how to link a sound file to the app..that is to play the sound when the alarm is triggered?

Thank you.

When the alarm is triggered, add this code (put the sound with the .exe):

My.Computer.Audio.Play(Application.StartupPath + "\NAME.wav", AudioPlayMode.Background)
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.