Click here to Skip to main content
15,889,858 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: Delegate Pin
Ennis Ray Lynch, Jr.17-Jun-09 7:28
Ennis Ray Lynch, Jr.17-Jun-09 7:28 
QuestionSystem.Net.Mail not working Pin
dptalt17-Jun-09 2:33
dptalt17-Jun-09 2:33 
AnswerRe: System.Net.Mail not working Pin
Rob Philpott17-Jun-09 2:38
Rob Philpott17-Jun-09 2:38 
GeneralRe: System.Net.Mail not working Pin
Dave Kreskowiak17-Jun-09 8:24
mveDave Kreskowiak17-Jun-09 8:24 
GeneralRe: System.Net.Mail not working Pin
Rob Philpott17-Jun-09 9:07
Rob Philpott17-Jun-09 9:07 
GeneralRe: System.Net.Mail not working Pin
Dave Kreskowiak17-Jun-09 13:30
mveDave Kreskowiak17-Jun-09 13:30 
AnswerRe: System.Net.Mail not working Pin
dptalt18-Jun-09 1:34
dptalt18-Jun-09 1:34 
Questionpass '' char to storedprocedure !!!!!!!!! Pin
zeeShan anSari17-Jun-09 2:20
zeeShan anSari17-Jun-09 2:20 
AnswerRe: pass '' char to storedprocedure !!!!!!!!! Pin
MohitBhambral17-Jun-09 2:32
MohitBhambral17-Jun-09 2:32 
GeneralRe: pass '' char to storedprocedure !!!!!!!!! Pin
zeeShan anSari17-Jun-09 2:47
zeeShan anSari17-Jun-09 2:47 
AnswerPass null to stored T-SQL Proc via LINQ Pin
ProtoBytes17-Jun-09 2:56
ProtoBytes17-Jun-09 2:56 
AnswerRe: Pass null to stored T-SQL Proc via LINQ Pin
zeeShan anSari17-Jun-09 3:07
zeeShan anSari17-Jun-09 3:07 
GeneralRe: Pass null to stored T-SQL Proc via LINQ Pin
zeeShan anSari17-Jun-09 3:38
zeeShan anSari17-Jun-09 3:38 
AnswerRe: Pass null to stored T-SQL Proc via LINQ [modified] Pin
ProtoBytes17-Jun-09 4:20
ProtoBytes17-Jun-09 4:20 
QuestionCrystal Report Pin
rema r17-Jun-09 1:38
rema r17-Jun-09 1:38 
AnswerRe: Crystal Report Pin
K030617-Jun-09 2:54
K030617-Jun-09 2:54 

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.