Click here to Skip to main content
15,920,603 members
Home / Discussions / C#
   

C#

 
AnswerRe: Compiler in C# Pin
Luc Pattyn3-Oct-10 18:41
sitebuilderLuc Pattyn3-Oct-10 18:41 
GeneralRe: Compiler in C# Pin
Anubhava Dimri3-Oct-10 20:05
Anubhava Dimri3-Oct-10 20:05 
GeneralRe: Compiler in C# Pin
Vimalsoft(Pty) Ltd3-Oct-10 21:35
professionalVimalsoft(Pty) Ltd3-Oct-10 21:35 
GeneralRe: Compiler in C# Pin
harold aptroot4-Oct-10 1:00
harold aptroot4-Oct-10 1:00 
QuestionHow to access multiple controls thread safe in Windows Forms Pin
poda3-Oct-10 17:28
poda3-Oct-10 17:28 
AnswerRe: How to access multiple controls thread safe in Windows Forms Pin
Mycroft Holmes3-Oct-10 17:45
professionalMycroft Holmes3-Oct-10 17:45 
GeneralRe: How to access multiple controls thread safe in Windows Forms Pin
Luc Pattyn3-Oct-10 17:49
sitebuilderLuc Pattyn3-Oct-10 17:49 
AnswerRe: How to access multiple controls thread safe in Windows Forms Pin
Luc Pattyn3-Oct-10 17:48
sitebuilderLuc Pattyn3-Oct-10 17:48 
you're not allowed to touch a Control from a random thread, so yes you need one or more Invoke calls. The proper way to handle simultaneous Control updates is by stuffing all the data you need in a little suitcase (i.e. a little class) and invoke once, let the delegate unpack the suitcase and do whatever needs to be done to the GUI. Assuming all GUI Controls got created on the main thread, all those Control.Invoke calls are equivalent anyhow, they all send the delegate to the main thread, no matter what they do to which Control.

This[^] article of mine explains the basics, you may know most of it already.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.


GeneralRe: How to access multiple controls thread safe in Windows Forms Pin
poda3-Oct-10 21:08
poda3-Oct-10 21:08 
GeneralRe: How to access multiple controls thread safe in Windows Forms Pin
Luc Pattyn4-Oct-10 1:32
sitebuilderLuc Pattyn4-Oct-10 1:32 
GeneralRe: How to access multiple controls thread safe in Windows Forms Pin
poda4-Oct-10 5:40
poda4-Oct-10 5:40 
GeneralRe: How to access multiple controls thread safe in Windows Forms Pin
Luc Pattyn4-Oct-10 5:55
sitebuilderLuc Pattyn4-Oct-10 5:55 
GeneralRe: How to access multiple controls thread safe in Windows Forms Pin
#realJSOP4-Oct-10 2:03
professional#realJSOP4-Oct-10 2:03 
GeneralRe: How to access multiple controls thread safe in Windows Forms Pin
poda4-Oct-10 5:42
poda4-Oct-10 5:42 
QuestionMessage Filter Pin
electriac3-Oct-10 11:37
electriac3-Oct-10 11:37 
AnswerRe: Message Filter Pin
Henry Minute3-Oct-10 11:49
Henry Minute3-Oct-10 11:49 
AnswerRe: Message Filter Pin
Dave Kreskowiak3-Oct-10 11:58
mveDave Kreskowiak3-Oct-10 11:58 
GeneralRe: Message Filter Pin
electriac3-Oct-10 12:03
electriac3-Oct-10 12:03 
AnswerRe: Message Filter Pin
Luc Pattyn3-Oct-10 12:03
sitebuilderLuc Pattyn3-Oct-10 12:03 
QuestionYield break Pin
Brij3-Oct-10 8:12
mentorBrij3-Oct-10 8:12 
AnswerRe: Yield break Pin
harold aptroot3-Oct-10 8:48
harold aptroot3-Oct-10 8:48 
AnswerRe: Yield break Pin
Henry Minute3-Oct-10 8:56
Henry Minute3-Oct-10 8:56 
AnswerRe: Yield break Pin
PIEBALDconsult3-Oct-10 8:58
mvePIEBALDconsult3-Oct-10 8:58 
GeneralRe: Yield break Pin
Brij3-Oct-10 9:15
mentorBrij3-Oct-10 9:15 
AnswerRe: Yield break Pin
Pete O'Hanlon3-Oct-10 9:21
mvePete O'Hanlon3-Oct-10 9:21 

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.