Click here to Skip to main content
14,387,840 members
   

C#

 
GeneralRe: How to disable other buttons based on user role login Pin
Eddy Vluggen10-Nov-19 12:59
mveEddy Vluggen10-Nov-19 12:59 
QuestionIs the command to check if the bell is running or stopped ? Pin
Member 24584677-Nov-19 21:55
MemberMember 24584677-Nov-19 21:55 
AnswerRe: Is the command to check if the bell is running or stopped ? Pin
Richard Deeming8-Nov-19 2:39
mveRichard Deeming8-Nov-19 2:39 
GeneralRe: Is the command to check if the bell is running or stopped ? Pin
Member 245846711-Nov-19 18:45
MemberMember 245846711-Nov-19 18:45 
GeneralRe: Is the command to check if the bell is running or stopped ? Pin
Richard Deeming12-Nov-19 1:15
mveRichard Deeming12-Nov-19 1:15 
GeneralRe: Is the command to check if the bell is running or stopped ? Pin
Member 245846712-Nov-19 15:25
MemberMember 245846712-Nov-19 15:25 
GeneralRe: Is the command to check if the bell is running or stopped ? Pin
Richard Deeming13-Nov-19 2:30
mveRichard Deeming13-Nov-19 2:30 
GeneralRe: Is the command to check if the bell is running or stopped ? Pin
Member 245846713-Nov-19 16:14
MemberMember 245846713-Nov-19 16:14 
Hi Richard MacCutchan!
Follow me, the above code can be edited without using RunWorkerCompleted, the program still returns the same result because the PlaySync() method is a sequential command, simple the code will be easier to understand, you see the code below. RunWorkerCompleted event in other cases eg Play() instead PlaySync() method to catch "PLAY/STOP" status for example, do you think ? that is my opinion.
private void btnPlaySound_Click(object sender, EventArgs e)
  {
      lblStatusPlaySound.ForeColor = Color.Green;
      lblStatusPlaySound.Text = "Status: PLAY";            
      Application.DoEvents();         
      Debug.Print("Status: PLAY");

      using (SoundPlayer player = new SoundPlayer(Properties.Resources.ring))
      {
          player.PlaySync();
      }

      lblStatusPlaySound.ForeColor = Color.Red;
      lblStatusPlaySound.Text = "Status: STOP";            
      Application.DoEvents();         
      Debug.Print("Status: STOP");
  }

GeneralRe: Is the command to check if the bell is running or stopped ? Pin
Richard Deeming14-Nov-19 2:12
mveRichard Deeming14-Nov-19 2:12 
GeneralRe: Is the command to check if the bell is running or stopped ? Pin
Member 245846717-Nov-19 15:39
MemberMember 245846717-Nov-19 15:39 
GeneralRe: Is the command to check if the bell is running or stopped ? Pin
Richard Deeming17-Nov-19 23:23
mveRichard Deeming17-Nov-19 23:23 
GeneralRe: Is the command to check if the bell is running or stopped ? Pin
Member 245846720-Nov-19 16:56
MemberMember 245846720-Nov-19 16:56 
QuestionLooking for Text To Speech library for C# ? Pin
Member 24584677-Nov-19 17:01
MemberMember 24584677-Nov-19 17:01 
AnswerRe: Looking for Text To Speech library for C# ? Pin
Richard MacCutchan7-Nov-19 22:04
mveRichard MacCutchan7-Nov-19 22:04 
GeneralRe: Looking for Text To Speech library for C# ? Pin
Member 245846710-Nov-19 18:10
MemberMember 245846710-Nov-19 18:10 
GeneralRe: Looking for Text To Speech library for C# ? Pin
Richard MacCutchan10-Nov-19 23:15
mveRichard MacCutchan10-Nov-19 23:15 
GeneralRe: Looking for Text To Speech library for C# ? Pin
Member 798912210-Nov-19 23:54
MemberMember 798912210-Nov-19 23:54 
GeneralRe: Looking for Text To Speech library for C# ? Pin
Richard MacCutchan11-Nov-19 1:11
mveRichard MacCutchan11-Nov-19 1:11 
GeneralRe: Looking for Text To Speech library for C# ? Pin
Member 245846712-Nov-19 16:33
MemberMember 245846712-Nov-19 16:33 
GeneralRe: Looking for Text To Speech library for C# ? Pin
Richard MacCutchan12-Nov-19 23:07
mveRichard MacCutchan12-Nov-19 23:07 
QuestionHow should I handle versioning of my application that contains versioning information about products? Pin
arnold_w7-Nov-19 2:32
Memberarnold_w7-Nov-19 2:32 
AnswerRe: How should I handle versioning of my application that contains versioning information about products? Pin
Eddy Vluggen7-Nov-19 3:19
mveEddy Vluggen7-Nov-19 3:19 
AnswerRe: How should I handle versioning of my application that contains versioning information about products? Pin
phil.o7-Nov-19 5:02
mvephil.o7-Nov-19 5:02 
AnswerRe: How should I handle versioning of my application that contains versioning information about products? Pin
OriginalGriff7-Nov-19 7:15
mveOriginalGriff7-Nov-19 7:15 
GeneralRe: How should I handle versioning of my application that contains versioning information about products? Pin
Richard Deeming7-Nov-19 8:41
mveRichard Deeming7-Nov-19 8:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.