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

C#

 
GeneralRe: Rs232 Comm Ports Icon or Class?? Pin
glennPattonWork34-Feb-11 6:08
professionalglennPattonWork34-Feb-11 6:08 
AnswerRe: Rs232 Comm Ports Icon or Class?? Pin
Luc Pattyn4-Feb-11 6:11
sitebuilderLuc Pattyn4-Feb-11 6:11 
GeneralRe: Rs232 Comm Ports Icon or Class?? Pin
PIEBALDconsult4-Feb-11 15:01
mvePIEBALDconsult4-Feb-11 15:01 
AnswerRe: Rs232 Comm Ports Icon or Class?? Pin
PIEBALDconsult4-Feb-11 15:01
mvePIEBALDconsult4-Feb-11 15:01 
QuestionCreate a silent setup with Visual Studio 2010 Pin
Eduard Keilholz4-Feb-11 3:54
Eduard Keilholz4-Feb-11 3:54 
AnswerRe: Create a silent setup with Visual Studio 2010 Pin
Abhinav S4-Feb-11 5:25
Abhinav S4-Feb-11 5:25 
GeneralRe: Create a silent setup with Visual Studio 2010 Pin
Eduard Keilholz6-Feb-11 20:54
Eduard Keilholz6-Feb-11 20:54 
QuestionWhich Timer to use? Pin
Ravi Sant4-Feb-11 3:53
Ravi Sant4-Feb-11 3:53 
I have a windows forms application.

I have a while(1) loop, which runs a Update Database functionality every 30 seconds.

There is Sleep(30000) in while(1) to wait.

This runs in background process.

Someone suggested me to use Windows.Forms Timer, while someone told me to use Threading.Timer.

My another requirement is that, i need to stop this background thread as whole on some UI tasks, so that Update Database functionality is not invoked at such times.

I require the suggestions to achieve same.

Thank You.
AnswerRe: Which Timer to use? Pin
Paladin20004-Feb-11 4:10
Paladin20004-Feb-11 4:10 
GeneralRe: Which Timer to use? Pin
Ravi Sant4-Feb-11 9:42
Ravi Sant4-Feb-11 9:42 
AnswerRe: Which Timer to use? Pin
Pete O'Hanlon4-Feb-11 4:21
mvePete O'Hanlon4-Feb-11 4:21 
GeneralRe: Which Timer to use? Pin
Ian Shlasko4-Feb-11 6:05
Ian Shlasko4-Feb-11 6:05 
GeneralRe: Which Timer to use? Pin
Pete O'Hanlon4-Feb-11 9:30
mvePete O'Hanlon4-Feb-11 9:30 
GeneralRe: Which Timer to use? Pin
Ian Shlasko4-Feb-11 10:37
Ian Shlasko4-Feb-11 10:37 
AnswerRe: Which Timer to use? Pin
PIEBALDconsult4-Feb-11 4:41
mvePIEBALDconsult4-Feb-11 4:41 
AnswerRe: No demons to be seen Pin
Luc Pattyn4-Feb-11 6:04
sitebuilderLuc Pattyn4-Feb-11 6:04 
Questionshow form Pin
Elham M4-Feb-11 3:09
Elham M4-Feb-11 3:09 
AnswerRe: show form Pin
Pete O'Hanlon4-Feb-11 3:23
mvePete O'Hanlon4-Feb-11 3:23 
AnswerRe: show form Pin
Paladin20004-Feb-11 4:03
Paladin20004-Feb-11 4:03 
GeneralRe: show form Pin
Elham M5-Feb-11 5:46
Elham M5-Feb-11 5:46 
GeneralRe: show form Pin
Paladin20007-Feb-11 3:37
Paladin20007-Feb-11 3:37 
GeneralRe: show form Pin
Elham M7-Feb-11 6:21
Elham M7-Feb-11 6:21 
AnswerRe: show form Pin
freshonlineMax4-Feb-11 4:04
freshonlineMax4-Feb-11 4:04 
GeneralRe: show form Pin
Pete O'Hanlon4-Feb-11 4:16
mvePete O'Hanlon4-Feb-11 4:16 
AnswerRe: show form Pin
_Erik_4-Feb-11 5:32
_Erik_4-Feb-11 5:32 

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.