I have the following C # statement:
- using (SoundPlayer player = new SoundPlayer(Properties.Resources.ring))
- {
- player.Play();
- //What should I write here?
- while (If the bell is running, wait here)
- {
- if (player.Stop()==true)
- {
- this.progressBarControl1.Visible = false; //false = không cho phép hi?n
- }
- }
- }
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.

Amit MohantyRank #112 · 20K reputationPosted Nov 7, 2019, 10:39 PM EST
Dong Lam TrienRank #1,538 · 1K reputationPosted Nov 11, 2019, 4:41 PM EST