I have the following C # statement:
- using (SoundPlayer player = new SoundPlayer(Properties.Resources.ring))
- {
- player.Play();
-
- while (If the bell is running, wait here)
- {
- if (player.Stop()==true)
- {
- this.progressBarControl1.Visible = false;
- }
- }
- }
I want to check if the ringer is running or stopping, if it is running then wait until it stops before running this.progressBarControl1.Visible = false.