Click here to Skip to main content
15,890,438 members
Home / Discussions / C#
   

C#

 
QuestionAccess MDI form variable in another child form Pin
Ajay Sadyal23-Mar-10 3:48
Ajay Sadyal23-Mar-10 3:48 
AnswerRe: Access MDI form variable in another child form Pin
OriginalGriff23-Mar-10 4:37
mveOriginalGriff23-Mar-10 4:37 
Questionargument into threading function by ref Pin
igalep13223-Mar-10 3:39
igalep13223-Mar-10 3:39 
AnswerRe: argument into threading function by ref Pin
Not Active23-Mar-10 4:02
mentorNot Active23-Mar-10 4:02 
GeneralRe: argument into threading function by ref Pin
igalep13223-Mar-10 4:09
igalep13223-Mar-10 4:09 
GeneralRe: argument into threading function by ref Pin
Not Active23-Mar-10 4:15
mentorNot Active23-Mar-10 4:15 
GeneralRe: argument into threading function by ref Pin
igalep13223-Mar-10 4:22
igalep13223-Mar-10 4:22 
AnswerRe: argument into threading function by ref Pin
Covean23-Mar-10 4:07
Covean23-Mar-10 4:07 
You just have to set the name of the method that should run in you thread.

Something like this:

Thread t1 = new Thread(new ThreadStart(mt.fillCaps));



To work with parameter you have to use the ParameterizedThreadStart delegate.

Thread t1 = new Thread(new ParameterizedThreadStart(mt.fillCaps));
Thread t2 = new Thread(new ParameterizedThreadStart(mt.fillUnCaps));
t1.Start(englishCapLetter);
t2.Start(englishSmallLetter);
t1.Join();
t2.Join();

Greetings
Covean

GeneralRe: argument into threading function by ref Pin
igalep13223-Mar-10 7:26
igalep13223-Mar-10 7:26 
AnswerRe: argument into threading function by ref Pin
Luc Pattyn23-Mar-10 8:00
sitebuilderLuc Pattyn23-Mar-10 8:00 
GeneralRe: argument into threading function by ref Pin
igalep13223-Mar-10 8:02
igalep13223-Mar-10 8:02 
GeneralRe: argument into threading function by ref Pin
Luc Pattyn23-Mar-10 8:40
sitebuilderLuc Pattyn23-Mar-10 8:40 
GeneralRe: argument into threading function by ref Pin
Not Active23-Mar-10 8:44
mentorNot Active23-Mar-10 8:44 
GeneralRe: argument into threading function by ref Pin
Luc Pattyn23-Mar-10 8:46
sitebuilderLuc Pattyn23-Mar-10 8:46 
GeneralRe: argument into threading function by ref Pin
Not Active23-Mar-10 9:04
mentorNot Active23-Mar-10 9:04 
GeneralRe: argument into threading function by ref Pin
Luc Pattyn23-Mar-10 9:18
sitebuilderLuc Pattyn23-Mar-10 9:18 
GeneralRe: argument into threading function by ref Pin
Not Active23-Mar-10 8:43
mentorNot Active23-Mar-10 8:43 
GeneralRe: argument into threading function by ref Pin
igalep13223-Mar-10 8:46
igalep13223-Mar-10 8:46 
GeneralRe: argument into threading function by ref Pin
Not Active23-Mar-10 9:32
mentorNot Active23-Mar-10 9:32 
GeneralRe: argument into threading function by ref Pin
igalep13223-Mar-10 10:57
igalep13223-Mar-10 10:57 
GeneralRe: argument into threading function by ref Pin
Not Active23-Mar-10 13:27
mentorNot Active23-Mar-10 13:27 
QuestionPass Data Between Form Pin
shahramkeyboard23-Mar-10 1:50
shahramkeyboard23-Mar-10 1:50 
AnswerRe: Pass Data Between Form Pin
Keith Barrow23-Mar-10 1:52
professionalKeith Barrow23-Mar-10 1:52 
JokeRe: Pass Data Between Form Pin
Calla23-Mar-10 1:57
Calla23-Mar-10 1:57 
GeneralRe: Pass Data Between Form Pin
Keith Barrow23-Mar-10 4:00
professionalKeith Barrow23-Mar-10 4:00 

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.