Click here to Skip to main content
16,007,504 members
Home / Discussions / C#
   

C#

 
GeneralRe: overriding equals Pin
Gilbert Consellado2-Jul-15 3:27
professionalGilbert Consellado2-Jul-15 3:27 
AnswerRe: overriding equals Pin
Brisingr Aerowing1-Jul-15 19:25
professionalBrisingr Aerowing1-Jul-15 19:25 
QuestionExecuting Powershell command from C# Pin
sudhi1641-Jul-15 4:15
sudhi1641-Jul-15 4:15 
AnswerRe: Executing Powershell command from C# Pin
phil.o1-Jul-15 5:57
professionalphil.o1-Jul-15 5:57 
QuestionDirectoryInfo.GetAccessControl() throws InvalidOperationException "Method failed with unexpected error code 1" Pin
Gerd Krause1-Jul-15 3:08
Gerd Krause1-Jul-15 3:08 
SuggestionRe: DirectoryInfo.GetAccessControl() throws InvalidOperationException "Method failed with unexpected error code 1" Pin
Richard Deeming1-Jul-15 7:46
mveRichard Deeming1-Jul-15 7:46 
GeneralRe: DirectoryInfo.GetAccessControl() throws InvalidOperationException "Method failed with unexpected error code 1" Pin
Gerd Krause1-Jul-15 23:21
Gerd Krause1-Jul-15 23:21 
QuestionHow i can pause/resume a thread in window form application ? Pin
Husnul karim30-Jun-15 20:59
Husnul karim30-Jun-15 20:59 
I am developing an window form application, in which i am playing an audio of wave format, and want to convert that pre recorded speech or audio into text format(using speech api) and display that text in the label.
I started a thread for audio to text conversion in the play button, now i want to pause that thread on the pause button(means how to pause a that thread). I used ManualEventReset method. but in the pause button when i am using signal.waitone() methods. this freez the whole form. please help.some parts of my code is given here.
//pause button
ManualResetEvent signal = new ManualResetEvent(false);

ManualResetEvent signal = new ManualResetEvent(false);

C#
private void buttonX15_Click(object sender, EventArgs e)
       {
           method_pause();
       }

C#
public void method_pause()
       {

           clip.Pause();
           visular1.Stop();
           visular2.Stop();
           visular3.Stop();
           visular4.Stop();
           visular5.Stop();
           this.pause.Hide();
           signal.WaitOne();
           play.Show();
       }


C#
private void play_Click(object sender, EventArgs e)
      {

          playsub();
          labelX1.Text = "Play";
       }


C#
public void playsub()
       {
           starter = delegate { subt(FName); };
           thread=new Thread(starter);




            try
            {
                thread.Start();
                method_play();

            }
           catch(Exception ex){}

       }


from where i can set the thread.
AnswerRe: How i can pause/resume a thread in window form application ? Pin
Pete O'Hanlon30-Jun-15 23:36
mvePete O'Hanlon30-Jun-15 23:36 
QuestionHow to check if pieces are ordered Pin
Aleksandar Jeftic30-Jun-15 11:22
Aleksandar Jeftic30-Jun-15 11:22 
GeneralRe: How to check if pieces are ordered Pin
PIEBALDconsult30-Jun-15 11:25
mvePIEBALDconsult30-Jun-15 11:25 
GeneralRe: How to check if pieces are ordered Pin
Aleksandar Jeftic2-Jul-15 4:50
Aleksandar Jeftic2-Jul-15 4:50 
AnswerRe: How to check if pieces are ordered Pin
Freak3030-Jun-15 21:20
Freak3030-Jun-15 21:20 
QuestionHotSpot Management via ICS in C# Pin
spaika30-Jun-15 4:31
spaika30-Jun-15 4:31 
QuestionInsert Image in excel with transperancy enabled Pin
Member 1179983729-Jun-15 23:56
Member 1179983729-Jun-15 23:56 
AnswerRe: Insert Image in excel with transperancy enabled Pin
Richard Deeming30-Jun-15 1:02
mveRichard Deeming30-Jun-15 1:02 
QuestionRead/Write App Settings Not Working Pin
Kevin Marois29-Jun-15 9:16
professionalKevin Marois29-Jun-15 9:16 
AnswerRe: Read/Write App Settings Not Working Pin
Eddy Vluggen29-Jun-15 10:36
professionalEddy Vluggen29-Jun-15 10:36 
GeneralRe: Read/Write App Settings Not Working Pin
Kevin Marois29-Jun-15 11:23
professionalKevin Marois29-Jun-15 11:23 
QuestionRe: Read/Write App Settings Not Working Pin
Eddy Vluggen29-Jun-15 11:28
professionalEddy Vluggen29-Jun-15 11:28 
AnswerRe: Read/Write App Settings Not Working Pin
Kevin Marois29-Jun-15 12:00
professionalKevin Marois29-Jun-15 12:00 
GeneralRe: Read/Write App Settings Not Working Pin
Pete O'Hanlon29-Jun-15 19:42
mvePete O'Hanlon29-Jun-15 19:42 
GeneralRe: Read/Write App Settings Not Working Pin
Kevin Marois30-Jun-15 3:47
professionalKevin Marois30-Jun-15 3:47 
GeneralRe: Read/Write App Settings Not Working Pin
Dave Kreskowiak30-Jun-15 5:16
mveDave Kreskowiak30-Jun-15 5:16 
GeneralRe: Read/Write App Settings Not Working Pin
Kevin Marois30-Jun-15 5:21
professionalKevin Marois30-Jun-15 5:21 

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.