Click here to Skip to main content
15,913,055 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem with MDI forms Pin
Nader Elshehabi22-Sep-06 4:51
Nader Elshehabi22-Sep-06 4:51 
Questionhow to pick background color Pin
Parshant Verma22-Sep-06 0:16
Parshant Verma22-Sep-06 0:16 
AnswerRe: how to pick background color Pin
Christian Graus22-Sep-06 0:57
protectorChristian Graus22-Sep-06 0:57 
GeneralRe: how to pick background color Pin
Parshant Verma22-Sep-06 1:00
Parshant Verma22-Sep-06 1:00 
GeneralRe: how to pick background color Pin
Christian Graus22-Sep-06 1:05
protectorChristian Graus22-Sep-06 1:05 
QuestionThreading Questions :confused: Pin
gvanto21-Sep-06 23:46
gvanto21-Sep-06 23:46 
AnswerRe: Threading Questions :confused: Pin
Nader Elshehabi22-Sep-06 2:33
Nader Elshehabi22-Sep-06 2:33 
QuestionRe: Threading Questions :confused: Pin
gvanto22-Sep-06 5:47
gvanto22-Sep-06 5:47 
Thanks this seems like a good way to create a 'Thread Pool'...

I have a little problem tho - the construct for a thread is as follows:

<br />
Thread t = new Thread(new ThreadStart(ThreadProc));<br />


but I'd like to add an "array" of threads to MyThreadCollection, each associated with a string
fetched from a richtextBox of variable length:

<br />
<br />
for (int j = 0; j < InList.Length; j++) // Array of strings fetched from richtextBox<br />
{<br />
    Thread  |ThreadName?| = new Thread(new ThreadStart(ThreadProc));<br />
    MyThreadCollection.Add( |ThreadName?| );<br />
}<br />
<br />
foreach(Thread T in MyThreadCollection() <br />
    T.Start();<br />
<br />


ie. what should I put for |ThreadName?| above? Is there some way of using a string array to assign each element as the "name" of a variable? Also, is it possible to pass an argument to the ThreadProc method?

Your help mcuh appreciated!!
gerry





Put A Smile On Your Face
http://www.thecrazywebsite.com

AnswerRe: Threading Questions :confused: Pin
Nader Elshehabi22-Sep-06 8:45
Nader Elshehabi22-Sep-06 8:45 
GeneralRe: Threading Questions :confused: Pin
gvanto22-Sep-06 10:24
gvanto22-Sep-06 10:24 
GeneralRe: Threading Questions :confused: Pin
Nader Elshehabi22-Sep-06 11:47
Nader Elshehabi22-Sep-06 11:47 
GeneralRe: Threading Questions :confused: Pin
gvanto22-Sep-06 12:06
gvanto22-Sep-06 12:06 
GeneralRe: Threading Questions :confused: Pin
gvanto22-Sep-06 12:08
gvanto22-Sep-06 12:08 
QuestionHelp me in save values in app.config and retrieve it . Pin
hdv21221-Sep-06 23:00
hdv21221-Sep-06 23:00 
AnswerRe: Help me in save values in app.config and retrieve it . Pin
rah_sin21-Sep-06 23:17
professionalrah_sin21-Sep-06 23:17 
GeneralRe: Help me in save values in app.config and retrieve it . Pin
hdv21222-Sep-06 1:17
hdv21222-Sep-06 1:17 
AnswerRe: Help me in save values in app.config and retrieve it . Pin
Alex@UEA22-Sep-06 2:43
Alex@UEA22-Sep-06 2:43 
Questionlanguage localization and pictures Pin
lushgrass21-Sep-06 22:45
lushgrass21-Sep-06 22:45 
AnswerRe: language localization and pictures Pin
lmoelleb22-Sep-06 0:34
lmoelleb22-Sep-06 0:34 
GeneralRe: language localization and pictures Pin
lushgrass25-Sep-06 15:45
lushgrass25-Sep-06 15:45 
Questionsending data over Network [modified] Pin
sanifant21-Sep-06 22:33
sanifant21-Sep-06 22:33 
AnswerRe: sending data over Network Pin
Green Fuze22-Sep-06 23:34
Green Fuze22-Sep-06 23:34 
GeneralRe: sending data over Network Pin
sanifant25-Sep-06 0:20
sanifant25-Sep-06 0:20 
GeneralRe: sending data over Network Pin
Green Fuze25-Sep-06 10:30
Green Fuze25-Sep-06 10:30 
QuestionAuto generated schema Pin
DanB198321-Sep-06 22:27
DanB198321-Sep-06 22:27 

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.