|
-
Jul 20th, 2007, 10:01 AM
#1
Thread Starter
Hyperactive Member
Re: Need to use a thread instead of a process? [C# 2002]
Isn't that only for .NET 2.0? Or is it also available in .Net 1.1 (C# 2002)?
Can you possibly provide more details - never worked with "backgroundworker"'s before...
Thanks,
-
Jul 20th, 2007, 10:17 AM
#2
Re: Need to use a thread instead of a process? [C# 2002]
 Originally Posted by Shaitan00
Isn't that only for .NET 2.0? Or is it also available in .Net 1.1 (C# 2002)?
Can you possibly provide more details - never worked with "backgroundworker"'s before...
Thanks,
Sorry, but the BackGroundWorker only became available in 2.0.
-
Jul 20th, 2007, 10:34 AM
#3
Thread Starter
Hyperactive Member
Re: Need to use a thread instead of a process? [C# 2002]
Is a thread therefore the only way to go?
Process was great because I could wait for it to exit, get the return code, etc... and the process simply launches an executable file (run.exe) so I didn't think threading was absolutly necessary for this requirement...
-
Jul 20th, 2007, 10:42 AM
#4
Re: Need to use a thread instead of a process? [C# 2002]
You'll need another thread(s) to start and control your process, i.e. you'll use both concepts (threads & processes).
Using multi-threading might cause you some UI problems, so make sure you do a research before you dig into coding
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Jul 20th, 2007, 10:45 AM
#5
Thread Starter
Hyperactive Member
Re: Need to use a thread instead of a process? [C# 2002]
See - I get the fact of using a thread if I am to be making changes on the form (frmMain) while the process is running - but in this case I am only doing one thing at a time (which is why I thought using a process would be fine) - the UI is just there displaying to the user but no changes are happening on it...
So it is normal that when I .Start() my process the form starting it gets automatically hidden?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|