Click here to Skip to main content
15,907,329 members
Home / Discussions / C#
   

C#

 
GeneralRe: Get one type of elements from dictionary Pin
PIEBALDconsult27-Jun-11 14:39
mvePIEBALDconsult27-Jun-11 14:39 
GeneralRe: Get one type of elements from dictionary Pin
Mycroft Holmes27-Jun-11 19:40
professionalMycroft Holmes27-Jun-11 19:40 
GeneralRe: Get one type of elements from dictionary Pin
SledgeHammer0127-Jun-11 19:44
SledgeHammer0127-Jun-11 19:44 
GeneralRe: Get one type of elements from dictionary Pin
Mycroft Holmes27-Jun-11 19:49
professionalMycroft Holmes27-Jun-11 19:49 
QuestionNavigating between forms Pin
Berlus26-Jun-11 1:19
Berlus26-Jun-11 1:19 
AnswerRe: Navigating between forms Pin
Mycroft Holmes26-Jun-11 1:59
professionalMycroft Holmes26-Jun-11 1:59 
AnswerRe: Navigating between forms Pin
Not Active27-Jun-11 2:29
mentorNot Active27-Jun-11 2:29 
QuestionCustom control sometimes doesn't paint/refresh the button on it Pin
teknolog12325-Jun-11 23:13
teknolog12325-Jun-11 23:13 
AnswerRe: Custom control sometimes doesn't paint/refresh the button on it Pin
Dave Kreskowiak27-Jun-11 9:22
mveDave Kreskowiak27-Jun-11 9:22 
QuestionStarting intrupped thread again.. Pin
shivamkalra25-Jun-11 19:06
shivamkalra25-Jun-11 19:06 
AnswerRe: Starting intrupped thread again.. Pin
MicroVirus26-Jun-11 0:44
MicroVirus26-Jun-11 0:44 
QuestionNamedPipeClientStream.Connect(int) doesn't throw Exception if Form is closed. [fixed, workaround] Pin
Xmen Real 25-Jun-11 17:59
professional Xmen Real 25-Jun-11 17:59 
QuestionKnow when form loses focus? Pin
Matt U.25-Jun-11 13:30
Matt U.25-Jun-11 13:30 
AnswerRe: Know when form loses focus? Pin
Dr.Walt Fair, PE25-Jun-11 16:49
professionalDr.Walt Fair, PE25-Jun-11 16:49 
GeneralRe: Know when form loses focus? Pin
Matt U.26-Jun-11 2:47
Matt U.26-Jun-11 2:47 
QuestionPopulate Listview using LINQ Pin
klaydze24-Jun-11 15:22
klaydze24-Jun-11 15:22 
QuestionRe: Populate Listview using LINQ Pin
Mario Majčica24-Jun-11 21:20
professionalMario Majčica24-Jun-11 21:20 
AnswerRe: Populate Listview using LINQ Pin
#realJSOP25-Jun-11 0:30
professional#realJSOP25-Jun-11 0:30 
GeneralRe: Populate Listview using LINQ Pin
Mycroft Holmes25-Jun-11 2:39
professionalMycroft Holmes25-Jun-11 2:39 
GeneralRe: Populate Listview using LINQ Pin
Dan Mos25-Jun-11 3:26
Dan Mos25-Jun-11 3:26 
GeneralRe: Populate Listview using LINQ Pin
Not Active27-Jun-11 2:27
mentorNot Active27-Jun-11 2:27 
AnswerRe: Populate Listview using LINQ Pin
klaydze25-Jun-11 3:25
klaydze25-Jun-11 3:25 
QuestionTask queues to execute a task one by one in file downloader program. [modified] Pin
shivamkalra24-Jun-11 12:37
shivamkalra24-Jun-11 12:37 
Hello Everyone,

I'm trying to automate file's downloading process from my server using winscp command line stfp downloader. It was required to process some standard output to detect errors and some events, so I redirected the standard output and standard input of process and set the shellexcute to false. Now I'm able to see the output messages on rich text box using asycn readline (BeginOutputhttp://msdn.microsoft.com/en-us/library/system.diagnostics.process.beginoutputreadline.aspx[^]) method provided in Process library. Now my problem, how can I write my program such that it is able to write commands to standard input asycn and at same time making sure that no command is missed, if previous command is under processing.

Let say I've a text box and button..if I press a button then it writes the command on text box to standard input of the process and then it waits for the reply..and lets assume this whole task takes 2 seconds..but during this 2 seconds user can enter more commands which can not be ignored so must be added to some queue, which can executed later on. I'm not sure how should I achieve this? I'm sorry if I'm misunderstanding anything here..but I've no experience with mutli threading in C#..Please suggest some design pattern to do this..any help would be appreciated..

Thanks,
Regards
Shivam Kalra

modified on Friday, June 24, 2011 10:44 PM

AnswerRe: Task queues to execute a task one by one in file downloader program. Pin
Richard MacCutchan24-Jun-11 23:01
mveRichard MacCutchan24-Jun-11 23:01 
QuestionNot Lost focus of form. Pin
Anubhava Dimri23-Jun-11 23:46
Anubhava Dimri23-Jun-11 23:46 

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.