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.
Dong Lam TrienPosted Nov 11, 2019, 9:41 PM
Amit MohantyPosted Nov 8, 2019, 3:39 AM