Click here to Skip to main content
15,881,812 members
Home / Discussions / C#
   

C#

 
AnswerRe: applicationsecurityinfo class Pin
vaghelabhavesh26-Jan-09 10:19
vaghelabhavesh26-Jan-09 10:19 
QuestionImpersonation With Md5 Pin
asafbs200426-Jan-09 9:25
asafbs200426-Jan-09 9:25 
AnswerRe: Impersonation With Md5 Pin
0x3c026-Jan-09 10:00
0x3c026-Jan-09 10:00 
AnswerRe: Impersonation With Md5 Pin
Dave Kreskowiak26-Jan-09 16:09
mveDave Kreskowiak26-Jan-09 16:09 
Questionthe result of DefragAnalysis method in c# Pin
SAKRA26-Jan-09 7:06
SAKRA26-Jan-09 7:06 
AnswerRe: the result of DefragAnalysis method in c# Pin
musefan26-Jan-09 7:25
musefan26-Jan-09 7:25 
AnswerRe: the result of DefragAnalysis method in c# Pin
ChunkyStool28-Jan-09 19:00
ChunkyStool28-Jan-09 19:00 
QuestionC# Threading help!! cant seem to get going.... Pin
alexleslie26-Jan-09 6:07
alexleslie26-Jan-09 6:07 
Hi all,

I’ve been stuck with this problem for around two days now, and have been trawling the forums looks for help.

Any help would be great.

I have a windows form application which calls external applications, including commandline calls to subversion.

I have a rich textbox on my forum where I redirect the output from cmd to. Everything works great, but the form freezes and the textbox does not show until I do a messagebox.show or something similar. I have come to the conclusion that I need to do the external processes on a worker thread. To be honest I have not got much further than that.

I have a function called commandLine() which takes various parameters such as command, working dir. etc. im thinking that I should place this on a separate thread but not sure how to go about it as within this function I redirect the output to another function which deals with putting the text into the rtb, and a text file.

I have been looking at the threading and the backgroundworker, but have no idea how to get started at all!

Any advice on how to get started, hints and tips, use threading or backgroundworker would be great. Just a quick summary:
Thread needs to take multiple parameters and pass various string values back to the form thread.

Hope this makes sense!
Cheers Big Grin | :-D
AnswerRe: C# Threading help!! cant seem to get going.... Pin
EliottA26-Jan-09 6:23
EliottA26-Jan-09 6:23 
AnswerRe: C# Threading help!! cant seem to get going.... Pin
Giorgi Dalakishvili26-Jan-09 6:24
mentorGiorgi Dalakishvili26-Jan-09 6:24 
GeneralRe: C# Threading help!! cant seem to get going.... Pin
EliottA26-Jan-09 6:27
EliottA26-Jan-09 6:27 
AnswerRe: C# Threading help!! cant seem to get going.... Pin
#realJSOP26-Jan-09 11:26
mve#realJSOP26-Jan-09 11:26 
QuestionDifficulty communicating with capture Device Pin
Alex_xso26-Jan-09 5:41
Alex_xso26-Jan-09 5:41 
AnswerCP: repeat post for like 3 times now. Pin
EliottA26-Jan-09 5:54
EliottA26-Jan-09 5:54 
Questionswitch off computer Pin
likefood26-Jan-09 5:39
likefood26-Jan-09 5:39 
AnswerRe: switch off computer Pin
EliottA26-Jan-09 5:55
EliottA26-Jan-09 5:55 
GeneralRe: switch off computer Pin
User 665826-Jan-09 6:00
User 665826-Jan-09 6:00 
GeneralRe: switch off computer Pin
likefood26-Jan-09 6:35
likefood26-Jan-09 6:35 
GeneralRe: switch off computer Pin
likefood26-Jan-09 6:35
likefood26-Jan-09 6:35 
AnswerRe: switch off computer Pin
Giorgi Dalakishvili26-Jan-09 6:10
mentorGiorgi Dalakishvili26-Jan-09 6:10 
GeneralRe: switch off computer Pin
likefood26-Jan-09 6:36
likefood26-Jan-09 6:36 
QuestionRe: switch off computer Pin
likefood26-Jan-09 8:16
likefood26-Jan-09 8:16 
AnswerRe: switch off computer Pin
likefood26-Jan-09 8:25
likefood26-Jan-09 8:25 
AnswerRe: switch off computer Pin
Xmen Real 26-Jan-09 14:03
professional Xmen Real 26-Jan-09 14:03 
GeneralRe: switch off computer Pin
likefood27-Jan-09 15:58
likefood27-Jan-09 15:58 

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.