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

C#

 
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 
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 
Actually I already answered that; here is one way:
// the anonymous form (C# consumer)
public void SetCount(int count) {
    dataGridView1.Invoke(new MethodInvoker(delegate() {
       StatusBarLabel1.Text = "Checking PowerStatus " + count;                 
       dataGridView1.Rows[2].Cells[4].Value = count;
       label1.Text = Convert.ToString("Cnt "+count);                  
    }));
}


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
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 
GeneralRe: Yield break Pin
Brij3-Oct-10 9:28
mentorBrij3-Oct-10 9:28 
GeneralRe: Yield break Pin
Pete O'Hanlon3-Oct-10 9:42
mvePete O'Hanlon3-Oct-10 9:42 

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.