Play a sound when a certain time triggers

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Locked
mattys
Posts: 20
Joined: Mon Dec 30, 2019 10:58 am

Play a sound when a certain time triggers

Post by mattys »

Is it possible to play a sound when a certain time trigger in an application form?

Would I use the timer? or just script it in?

Thanks for your thoughts and time.

jvierra
Posts: 14480
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: Play a sound when a certain time triggers

Post by jvierra »

Use a timer. It is the fastest and easiest way. Drop control and use the tick to test for the time.

mattys
Posts: 20
Joined: Mon Dec 30, 2019 10:58 am

Re: Play a sound when a certain time triggers

Post by mattys »

Perfect!
Thanks for reply!

Locked