Click here to Skip to main content
15,887,214 members
Home / Discussions / C#
   

C#

 
GeneralRe: email template Pin
AspDotNetDev19-Aug-10 9:10
protectorAspDotNetDev19-Aug-10 9:10 
AnswerRe: email template Pin
T M Gray19-Aug-10 11:19
T M Gray19-Aug-10 11:19 
AnswerRe: email template Pin
Eaverae19-Aug-10 20:44
Eaverae19-Aug-10 20:44 
QuestionDoes the timer event run in a new thread? Pin
yu-jian19-Aug-10 6:39
yu-jian19-Aug-10 6:39 
AnswerRe: Does the timer event run in a new thread? Pin
Dave Kreskowiak19-Aug-10 7:00
mveDave Kreskowiak19-Aug-10 7:00 
GeneralRe: Does the timer event run in a new thread? Pin
yu-jian19-Aug-10 7:49
yu-jian19-Aug-10 7:49 
GeneralRe: Does the timer event run in a new thread? Pin
daniel ingalla19-Aug-10 8:03
daniel ingalla19-Aug-10 8:03 
GeneralRe: Does the timer event run in a new thread? Pin
Ian Shlasko19-Aug-10 8:43
Ian Shlasko19-Aug-10 8:43 
They're all different... http://msdn.microsoft.com/en-us/magazine/cc164015.aspx[^]

System.Windows.Forms.Timer = Runs in your UI thread, and is part of the message loop. If your GUI is running slowly, this timer will become inaccurate. If you run a long loop on the GUI thread that blocks user input, it'll block this too. Not only will it be inaccurate, but if it falls behind, it will actually just skip any ticks it missed.

System.Timers.Timer = Runs in its own thread, and triggers events on a background thread. You can use its Synchronizing object to put its events on the GUI thread if you want, and that'll make it work basically just like the S.W.F.Timer, except that it won't skip ticks.

System.Threading.Timer = Similar to the System.Timers.Timer, but gives you finer control and is a little more complicated to use.
Proud to have finally moved to the A-Ark. Which one are you in?
Author of the Guardians Saga (Sci-Fi/Fantasy novels)

GeneralRe: Does the timer event run in a new thread? Pin
Dave Kreskowiak19-Aug-10 9:18
mveDave Kreskowiak19-Aug-10 9:18 
AnswerRe: Does the timer event run in a new thread? Pin
Luc Pattyn19-Aug-10 11:47
sitebuilderLuc Pattyn19-Aug-10 11:47 
AnswerRe: Does the timer event run in a new thread? Pin
Samuel Cherinet20-Aug-10 5:12
Samuel Cherinet20-Aug-10 5:12 
Questionhow C# Datagridview export to dbase IV ? Pin
pravietis19-Aug-10 1:57
pravietis19-Aug-10 1:57 
QuestionHow to minimize the garbage collector running .. ? Pin
Yanshof18-Aug-10 23:09
Yanshof18-Aug-10 23:09 
GeneralRe: How to minimize the garbage collector running .. ? PinPopular
Łukasz Nowakowski18-Aug-10 23:45
Łukasz Nowakowski18-Aug-10 23:45 
AnswerRe: How to minimize the garbage collector running .. ? Pin
DaveyM6918-Aug-10 23:59
professionalDaveyM6918-Aug-10 23:59 
AnswerRe: How to minimize the garbage collector running .. ? Pin
Luc Pattyn19-Aug-10 2:26
sitebuilderLuc Pattyn19-Aug-10 2:26 
AnswerRe: How to minimize the garbage collector running .. ? Pin
Ennis Ray Lynch, Jr.19-Aug-10 3:24
Ennis Ray Lynch, Jr.19-Aug-10 3:24 
AnswerRe: How to minimize the garbage collector running .. ? Pin
#realJSOP19-Aug-10 3:44
mve#realJSOP19-Aug-10 3:44 
AnswerRe: How to minimize the garbage collector running .. ? Pin
Paul Michalik20-Aug-10 22:38
Paul Michalik20-Aug-10 22:38 
GeneralRe: How to minimize the garbage collector running .. ? Pin
Yanshof21-Aug-10 7:25
Yanshof21-Aug-10 7:25 
GeneralRe: How to minimize the garbage collector running .. ? Pin
Paul Michalik21-Aug-10 22:59
Paul Michalik21-Aug-10 22:59 
QuestionCheck Broken File Pin
dataminers18-Aug-10 22:41
dataminers18-Aug-10 22:41 
AnswerRe: Check Broken File Pin
R. Giskard Reventlov18-Aug-10 22:49
R. Giskard Reventlov18-Aug-10 22:49 
GeneralRe: Check Broken File Pin
dataminers19-Aug-10 0:34
dataminers19-Aug-10 0:34 
GeneralRe: Check Broken File Pin
R. Giskard Reventlov19-Aug-10 0:52
R. Giskard Reventlov19-Aug-10 0:52 

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.