Click here to Skip to main content
15,896,915 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: Not Lost focus of form. Pin
Mario Majčica24-Jun-11 4:12
professionalMario Majčica24-Jun-11 4:12 
SuggestionRe: Not Lost focus of form. Pin
MicroVirus24-Jun-11 6:08
MicroVirus24-Jun-11 6:08 
GeneralRe: Not Lost focus of form. Pin
Mario Majčica24-Jun-11 9:50
professionalMario Majčica24-Jun-11 9:50 
GeneralRe: Not Lost focus of form. Pin
MicroVirus24-Jun-11 11:14
MicroVirus24-Jun-11 11:14 
Questionmsmq throws an exception when called the receive. Pin
prasadbuddhika23-Jun-11 19:45
prasadbuddhika23-Jun-11 19:45 
AnswerRe: msmq throws an exception when called the receive. Pin
surender.m23-Jun-11 20:58
surender.m23-Jun-11 20:58 
GeneralRe: msmq throws an exception when called the receive. Pin
mahendren29-Jun-11 2:03
mahendren29-Jun-11 2:03 
QuestionCreating an icon for the system tray - losing a lot of colours! Pin
Peter_Smithson23-Jun-11 1:45
Peter_Smithson23-Jun-11 1:45 
AnswerRe: Creating an icon for the system tray - losing a lot of colours! Pin
GuyThiebaut23-Jun-11 4:47
professionalGuyThiebaut23-Jun-11 4:47 
AnswerRe: Creating an icon for the system tray - losing a lot of colours! Pin
BobJanova23-Jun-11 4:53
BobJanova23-Jun-11 4:53 
GeneralRe: Creating an icon for the system tray - losing a lot of colours! Pin
Peter_Smithson23-Jun-11 5:32
Peter_Smithson23-Jun-11 5:32 
GeneralRe: Creating an icon for the system tray - losing a lot of colours! Pin
BobJanova23-Jun-11 6:25
BobJanova23-Jun-11 6:25 
QuestionIs there a way to transfer files to remote computer of different domain using remote server's username and password??? (c# , console) Pin
surender.m23-Jun-11 0:10
surender.m23-Jun-11 0:10 
AnswerRe: Is there a way to transfer files to remote computer of different domain using remote server's username and password??? (c# , console) Pin
OriginalGriff23-Jun-11 0:26
mveOriginalGriff23-Jun-11 0:26 
GeneralRe: Is there a way to transfer files to remote computer of different domain using remote server's username and password??? (c# , console) Pin
surender.m23-Jun-11 0:39
surender.m23-Jun-11 0:39 

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.