Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
AnswerRe: Threadiing Pin
Christian Graus7-Aug-07 0:42
protectorChristian Graus7-Aug-07 0:42 
GeneralRe: Threadiing Pin
james_dixon_20087-Aug-07 1:28
james_dixon_20087-Aug-07 1:28 
GeneralRe: Threadiing Pin
Tristan Rhodes7-Aug-07 2:04
Tristan Rhodes7-Aug-07 2:04 
GeneralRe: Threadiing Pin
james_dixon_20087-Aug-07 3:00
james_dixon_20087-Aug-07 3:00 
GeneralRe: Threadiing Pin
pbraun7-Aug-07 4:44
pbraun7-Aug-07 4:44 
GeneralRe: Threadiing Pin
Tristan Rhodes7-Aug-07 5:00
Tristan Rhodes7-Aug-07 5:00 
GeneralRe: Threadiing Pin
james_dixon_20087-Aug-07 6:40
james_dixon_20087-Aug-07 6:40 
GeneralRe: Threadiing Pin
Tristan Rhodes7-Aug-07 4:46
Tristan Rhodes7-Aug-07 4:46 
Threads are mind bending to get your head round when you get into them. Took me ages to figure them out.

You already know a delegate is a function pointer, and as long as it isn't executed by a worker thread, and is instead processed by the Main thread, it will be thread safe and valid for UI manipulation. You can create as many instances of delegates pointing to the same function as you like, and simply run them on the main thread.

Try spawning multiple threads and firing off delegates for the same function with different fields. The invoke method lets you supply a parameter list after the delegate so you can supply arguments to the invoked function.

Also, you could experiment with.. i think it's Anonymous Methods, where you create the method body with the delegate declaration.

Good luck

T

-------------------------------

Carrier Bags - 21st Century Tumbleweed.

QuestionDefault program of file. Pin
Rahul.RK7-Aug-07 0:26
Rahul.RK7-Aug-07 0:26 
AnswerRe: Default program of file. Pin
Christian Graus7-Aug-07 0:44
protectorChristian Graus7-Aug-07 0:44 
GeneralRe: Default program of file. Pin
Tormod Fjeldskaar7-Aug-07 0:49
Tormod Fjeldskaar7-Aug-07 0:49 
GeneralRe: Default program of file. Pin
Vasudevan Deepak Kumar7-Aug-07 0:49
Vasudevan Deepak Kumar7-Aug-07 0:49 
GeneralRe: Default program of file. Pin
Tormod Fjeldskaar7-Aug-07 1:16
Tormod Fjeldskaar7-Aug-07 1:16 
AnswerRe: Default program of file. Pin
Kumar Arun7-Aug-07 1:36
Kumar Arun7-Aug-07 1:36 
AnswerRe: Default program of file. Pin
Hessam Jalali7-Aug-07 1:47
Hessam Jalali7-Aug-07 1:47 
GeneralRe: Default program of file. Pin
Rahul.RK7-Aug-07 18:31
Rahul.RK7-Aug-07 18:31 
QuestionError while assigning value to a cell in a DataTable Pin
Vishnu Govind7-Aug-07 0:00
Vishnu Govind7-Aug-07 0:00 
AnswerRe: Error while assigning value to a cell in a DataTable Pin
Elayaraja Sambasivam7-Aug-07 0:11
Elayaraja Sambasivam7-Aug-07 0:11 
GeneralRe: Error while assigning value to a cell in a DataTable Pin
Vishnu Govind7-Aug-07 1:38
Vishnu Govind7-Aug-07 1:38 
GeneralRe: Error while assigning value to a cell in a DataTable Pin
Vishnu Govind7-Aug-07 2:04
Vishnu Govind7-Aug-07 2:04 
Questiondetail section of crystal report. Pin
monuSaini6-Aug-07 23:28
monuSaini6-Aug-07 23:28 
AnswerRe: detail section of crystal report. Pin
Elayaraja Sambasivam7-Aug-07 0:16
Elayaraja Sambasivam7-Aug-07 0:16 
QuestionCRL Checking Pin
Nitin Khubani6-Aug-07 23:17
Nitin Khubani6-Aug-07 23:17 
AnswerRe: CRL Checking Pin
Pete O'Hanlon6-Aug-07 23:40
mvePete O'Hanlon6-Aug-07 23:40 
QuestionTransparencyKey in MDI child form Pin
mcaos6-Aug-07 23:05
professionalmcaos6-Aug-07 23:05 

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.