Click here to Skip to main content
15,917,709 members
Home / Discussions / C#
   

C#

 
GeneralRe: Multiple Object Type Serialization Pin
David Muir17-Jun-09 22:46
David Muir17-Jun-09 22:46 
GeneralRe: Multiple Object Type Serialization Pin
I Believe In GOD18-Jun-09 4:28
I Believe In GOD18-Jun-09 4:28 
QuestionWindows service. Mobile service? Pin
Yosh_17-Jun-09 4:41
professionalYosh_17-Jun-09 4:41 
AnswerRe: Windows service. Mobile service? Pin
Matt Cavanagh17-Jun-09 5:21
Matt Cavanagh17-Jun-09 5:21 
GeneralRe: Windows service. Mobile service? Pin
Yosh_17-Jun-09 5:37
professionalYosh_17-Jun-09 5:37 
GeneralRe: Windows service. Mobile service? Pin
Matt Cavanagh17-Jun-09 5:44
Matt Cavanagh17-Jun-09 5:44 
Questioncreating crystal report by passing multiple parameter in store procedure Pin
pupilstuff17-Jun-09 4:12
pupilstuff17-Jun-09 4:12 
AnswerRe: creating crystal report by passing multiple parameter in store procedure Pin
Michael Bookatz17-Jun-09 4:23
Michael Bookatz17-Jun-09 4:23 
QuestionReading from resource file in C# through access violation exception sometimes Pin
cancerion17-Jun-09 3:54
cancerion17-Jun-09 3:54 
AnswerRe: Reading from resource file in C# through access violation exception sometimes Pin
Michael Bookatz17-Jun-09 4:09
Michael Bookatz17-Jun-09 4:09 
GeneralRe: Reading from resource file in C# through access violation exception sometimes Pin
Luc Pattyn17-Jun-09 4:24
sitebuilderLuc Pattyn17-Jun-09 4:24 
JokeRe: Reading from resource file in C# through access violation exception sometimes Pin
Michael Bookatz17-Jun-09 4:28
Michael Bookatz17-Jun-09 4:28 
GeneralRe: Reading from resource file in C# through access violation exception sometimes Pin
molesworth17-Jun-09 4:29
molesworth17-Jun-09 4:29 
AnswerRe: Reading from resource file in C# through access violation exception sometimes Pin
OriginalGriff17-Jun-09 4:48
mveOriginalGriff17-Jun-09 4:48 
GeneralI object Pin
Luc Pattyn17-Jun-09 5:13
sitebuilderLuc Pattyn17-Jun-09 5:13 
GeneralRe: I object Pin
OriginalGriff17-Jun-09 5:18
mveOriginalGriff17-Jun-09 5:18 
QuestionPDF virtual printer in c# Pin
JurieBurie17-Jun-09 3:19
JurieBurie17-Jun-09 3:19 
AnswerRe: PDF virtual printer in c# Pin
Dave Kreskowiak17-Jun-09 8:19
mveDave Kreskowiak17-Jun-09 8:19 
QuestionFIPS 140-2 Compliance Pin
DMBFiredancer17-Jun-09 3:14
DMBFiredancer17-Jun-09 3:14 
Questiondyanamic crystal report Pin
pupilstuff17-Jun-09 3:02
pupilstuff17-Jun-09 3:02 
QuestionDelegate Pin
Matt Cavanagh17-Jun-09 2:39
Matt Cavanagh17-Jun-09 2:39 
AnswerRe: Delegate Pin
Luc Pattyn17-Jun-09 2:55
sitebuilderLuc Pattyn17-Jun-09 2:55 
GeneralRe: Delegate Pin
Matt Cavanagh17-Jun-09 3:18
Matt Cavanagh17-Jun-09 3:18 
GeneralRe: Delegate Pin
Luc Pattyn17-Jun-09 3:32
sitebuilderLuc Pattyn17-Jun-09 3:32 
Hi,

if
label1.BackColor = Color.Red;
doSomethingHeroic();

is inside a System.Windows.Forms.Timer's tick handler (which always executes on the GUI thread), then (1) calling this.Invoke() and (2) changing a Control somehow will not show until the GUI thread gets to it, which normally is not before the Tick handler is done. You can remedy that in several ways, depending on circumstances:
- by calling Refresh() or Invalidate() on the Control;
- by inserting an Application.DoEvents() which is dangerous and an ugly hack;
- by moving long-winding operations (I assume doSomethingHeroic is) to another thread, which may well be necessary since a GUI thread should not be kept busy for more than say 30 msec in order to keep your app responsive (to user input, to other Windows uncovering it, etc).

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.

GeneralRe: Delegate Pin
Matt Cavanagh17-Jun-09 5:19
Matt Cavanagh17-Jun-09 5:19 

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.