Click here to Skip to main content
15,885,435 members
Home / Discussions / C#
   

C#

 
QuestionHow To Determine the strings language Pin
mohammadkaab18-Oct-12 6:26
mohammadkaab18-Oct-12 6:26 
AnswerRe: How To Determine the strings language Pin
Eddy Vluggen18-Oct-12 6:30
professionalEddy Vluggen18-Oct-12 6:30 
AnswerRe: How To Determine the strings language Pin
jschell18-Oct-12 9:34
jschell18-Oct-12 9:34 
AnswerRe: How To Determine the strings language Pin
Richard Deeming18-Oct-12 10:53
mveRichard Deeming18-Oct-12 10:53 
QuestionNeeding help with threads and delegates Pin
turbosupramk318-Oct-12 5:00
turbosupramk318-Oct-12 5:00 
AnswerRe: Needing help with threads and delegates Pin
BobJanova18-Oct-12 5:48
BobJanova18-Oct-12 5:48 
GeneralRe: Needing help with threads and delegates Pin
turbosupramk318-Oct-12 6:16
turbosupramk318-Oct-12 6:16 
GeneralRe: Needing help with threads and delegates Pin
BobJanova18-Oct-12 6:58
BobJanova18-Oct-12 6:58 
If you set IsBackground, the worker thread will be killed when the main form is closed. That will solve the invoke-on-disposed-control issue but it is sometimes not what you want.

Delegates are simply typed function pointers. They are typically used to hook to events, which are some syntactic niceness around multicast delegates (i.e. the code calls what looks like one function, and several handler functions are run). They don't have anything directly to do with multithreading. Examples of non-threaded delegate usage include such obvious things as Click handlers on buttons (and all other UI events).

However, the way the Framework exposes threading functionality is either through Thread or BackgroundWorker. Thread takes a delegate to specify the method that should be run, and BackgroundWorker has several events which you can hook delegates onto.


turbosupramk3 wrote:
It appears to have the ability to insert an item into the main form thread queue of what it is doing. Is that correct?

This is a decent description of the purpose of the Invoke or BeginInvoke methods. They ask the relevant thread to run a method (specified by a delegate) when appropriate.
AnswerRe: Needing help with threads and delegates Pin
Eddy Vluggen18-Oct-12 6:17
professionalEddy Vluggen18-Oct-12 6:17 
GeneralRe: Needing help with threads and delegates Pin
turbosupramk318-Oct-12 6:24
turbosupramk318-Oct-12 6:24 
Questionto send data to an IP address Pin
GzMs18-Oct-12 3:16
GzMs18-Oct-12 3:16 
AnswerRe: to send data to an IP address Pin
Ravi Bhavnani18-Oct-12 3:40
professionalRavi Bhavnani18-Oct-12 3:40 
GeneralRe: to send data to an IP address Pin
GzMs18-Oct-12 4:46
GzMs18-Oct-12 4:46 
GeneralRe: to send data to an IP address Pin
Ravi Bhavnani18-Oct-12 4:57
professionalRavi Bhavnani18-Oct-12 4:57 
AnswerRe: to send data to an IP address Pin
Ingo18-Oct-12 6:06
Ingo18-Oct-12 6:06 
AnswerRe: to send data to an IP address Pin
jschell18-Oct-12 9:39
jschell18-Oct-12 9:39 
QuestionCan save images to a structured text file C#? Pin
Member 245846718-Oct-12 1:27
Member 245846718-Oct-12 1:27 
AnswerRe: Can save images to a structured text file C#? Pin
Eddy Vluggen18-Oct-12 1:39
professionalEddy Vluggen18-Oct-12 1:39 
AnswerRe: Can save images to a structured text file C#? Pin
BobJanova18-Oct-12 5:46
BobJanova18-Oct-12 5:46 
GeneralRe: Can save images to a structured text file C#? Pin
Member 245846721-Nov-12 16:01
Member 245846721-Nov-12 16:01 
Newshow to create send and receive appln Pin
jeny joseph18-Oct-12 0:10
jeny joseph18-Oct-12 0:10 
GeneralRe: how to create send and receive appln Pin
Pete O'Hanlon18-Oct-12 0:41
mvePete O'Hanlon18-Oct-12 0:41 
QuestionVariable declaration. Pin
Sibasisjena17-Oct-12 22:12
professionalSibasisjena17-Oct-12 22:12 
AnswerRe: Variable declaration. Pin
Eddy Vluggen17-Oct-12 22:40
professionalEddy Vluggen17-Oct-12 22:40 
AnswerRe: Variable declaration. Pin
V.17-Oct-12 22:41
professionalV.17-Oct-12 22:41 

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.