Click here to Skip to main content
15,894,720 members
Home / Discussions / C#
   

C#

 
AnswerRe: programming unknown conditions Pin
R. Giskard Reventlov7-Feb-12 15:53
R. Giskard Reventlov7-Feb-12 15:53 
AnswerRe: programming unknown conditions Pin
candogu7-Feb-12 20:32
candogu7-Feb-12 20:32 
AnswerRe: programming unknown conditions Pin
BillWoodruff8-Feb-12 4:06
professionalBillWoodruff8-Feb-12 4:06 
AnswerRe: programming unknown conditions Pin
BobJanova8-Feb-12 4:07
BobJanova8-Feb-12 4:07 
AnswerRe: programming unknown conditions Pin
jschell8-Feb-12 8:23
jschell8-Feb-12 8:23 
AnswerRe: programming unknown conditions Pin
GParkings14-Feb-12 0:24
GParkings14-Feb-12 0:24 
Questionmysql table to Access database Pin
srscuda7-Feb-12 9:42
srscuda7-Feb-12 9:42 
AnswerRe: mysql table to Access database Pin
Richard Andrew x647-Feb-12 10:35
professionalRichard Andrew x647-Feb-12 10:35 
AnswerRe: mysql table to Access database Pin
SilimSayo7-Feb-12 15:43
SilimSayo7-Feb-12 15:43 
AnswerRe: mysql table to Access database Pin
brendanpi7-Feb-12 17:55
brendanpi7-Feb-12 17:55 
Questionhelp with access and C# error Pin
goldsoft7-Feb-12 1:12
goldsoft7-Feb-12 1:12 
AnswerRe: help with access and C# error Pin
Dave Kreskowiak7-Feb-12 1:57
mveDave Kreskowiak7-Feb-12 1:57 
AnswerRe: help with access and C# error Pin
V.7-Feb-12 2:19
professionalV.7-Feb-12 2:19 
Questionfile conversion into udf Pin
anikbutt227-Feb-12 0:15
anikbutt227-Feb-12 0:15 
GeneralRe: file conversion into udf Pin
harold aptroot7-Feb-12 0:35
harold aptroot7-Feb-12 0:35 
GeneralRe: file conversion into udf Pin
anikbutt227-Feb-12 0:59
anikbutt227-Feb-12 0:59 
GeneralRe: file conversion into udf Pin
harold aptroot7-Feb-12 1:04
harold aptroot7-Feb-12 1:04 
GeneralRe: file conversion into udf Pin
anikbutt227-Feb-12 1:08
anikbutt227-Feb-12 1:08 
GeneralRe: file conversion into udf Pin
harold aptroot7-Feb-12 1:11
harold aptroot7-Feb-12 1:11 
GeneralRe: file conversion into udf Pin
anikbutt227-Feb-12 1:13
anikbutt227-Feb-12 1:13 
QuestionUse of Application.DoEvents() or multithreading Pin
Gwannoes6-Feb-12 23:04
Gwannoes6-Feb-12 23:04 
AnswerRe: Use of Application.DoEvents() or multithreading Pin
BobJanova6-Feb-12 23:45
BobJanova6-Feb-12 23:45 
GeneralRe: Use of Application.DoEvents() or multithreading Pin
Gwannoes7-Feb-12 0:22
Gwannoes7-Feb-12 0:22 
GeneralRe: Use of Application.DoEvents() or multithreading Pin
BobJanova7-Feb-12 1:41
BobJanova7-Feb-12 1:41 
AnswerRe: Use of Application.DoEvents() or multithreading Pin
Luc Pattyn7-Feb-12 0:15
sitebuilderLuc Pattyn7-Feb-12 0:15 
Application.DoEvents() is evil and should be avoided at all costs. You cannot seriously mention it and "best practice" in one and the same sentence.

A long winding operation needs to be handled in a separate thread; that is the way to keep your GUI operational, and to preserve a normal user experience. Often a BackgroundWorker comes in handy, as its ProgressChanged event fires on the GUI thread.

There is one alternative, and that is based on a timer, i.e. one operation (measurement) gets executed per timer tick. I am wondering about your setup, does it run "as fast as it can"? I see no code that synchronizes to a clock?

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum

Fed up by FireFox memory leaks I switched to Opera and now CP doesn't perform its paste magic, so links will not be offered. Sorry.

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.