Click here to Skip to main content
15,906,335 members
Home / Discussions / C#
   

C#

 
GeneralRe: Drag and Drop Treeview Item into listview Pin
Udayaraju22-Jan-09 4:14
Udayaraju22-Jan-09 4:14 
QuestionRe: Drag and Drop Treeview Item into listview Pin
Udayaraju22-Jan-09 4:10
Udayaraju22-Jan-09 4:10 
QuestionIssue with the Windows Service OnTimeElapsed Pin
mpavas21-Jan-09 19:33
mpavas21-Jan-09 19:33 
AnswerRe: Issue with the Windows Service OnTimeElapsed Pin
Guffa21-Jan-09 21:51
Guffa21-Jan-09 21:51 
GeneralRe: Issue with the Windows Service OnTimeElapsed Pin
mpavas21-Jan-09 21:57
mpavas21-Jan-09 21:57 
GeneralRe: Issue with the Windows Service OnTimeElapsed Pin
mpavas21-Jan-09 22:18
mpavas21-Jan-09 22:18 
GeneralRe: Issue with the Windows Service OnTimeElapsed Pin
Guffa22-Jan-09 0:45
Guffa22-Jan-09 0:45 
AnswerRe: Issue with the Windows Service OnTimeElapsed Pin
#realJSOP22-Jan-09 0:21
professional#realJSOP22-Jan-09 0:21 
Put your work into a thread, and fire off the thread each time the timer ticks. You can even prevent multiple threads from kicking off with appropriate code in the tick handler.

Personally, I wouldn't use a Timer object because it's the lowest priority message in Windows, and in a busy system, there's no guarantee the message will even be handled. Instead, I use a BackgroundWorker object for timers because they can be easily aborted. Sure, it's more code (go forbid a programmer should have to actually write some code), but it's much more reliable and controllable.


"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001


GeneralRe: Issue with the Windows Service OnTimeElapsed Pin
S. Senthil Kumar22-Jan-09 3:27
S. Senthil Kumar22-Jan-09 3:27 
Questionhow to make gridview1 inside gridview2 inside gridview3 Pin
thanhtike21-Jan-09 19:25
thanhtike21-Jan-09 19:25 
QuestionHow do you name controls? Pin
CooperWu21-Jan-09 19:14
CooperWu21-Jan-09 19:14 
AnswerRe: How do you name controls? Pin
Vikram A Punathambekar21-Jan-09 20:00
Vikram A Punathambekar21-Jan-09 20:00 
GeneralRe: How do you name controls? Pin
CooperWu21-Jan-09 21:14
CooperWu21-Jan-09 21:14 
AnswerRe: How do you name controls? Pin
DaveyM6921-Jan-09 21:34
professionalDaveyM6921-Jan-09 21:34 
AnswerRe: How do you name controls? Pin
#realJSOP22-Jan-09 0:24
professional#realJSOP22-Jan-09 0:24 
GeneralRe: How do you name controls? Pin
CooperWu22-Jan-09 14:47
CooperWu22-Jan-09 14:47 
QuestionHow to get device state(enable or disable)? Pin
lovnin21-Jan-09 18:45
lovnin21-Jan-09 18:45 
AnswerRe: How to get device state(enable or disable)? Pin
Ben Fair22-Jan-09 4:51
Ben Fair22-Jan-09 4:51 
AnswerRe: How to get device state(enable or disable)? Pin
CooperWu22-Jan-09 14:48
CooperWu22-Jan-09 14:48 
Questiongetting the row index in c# Pin
amitpathak02421-Jan-09 18:11
amitpathak02421-Jan-09 18:11 
AnswerRe: getting the row index in c# Pin
RajpootRohan21-Jan-09 18:34
professionalRajpootRohan21-Jan-09 18:34 
Questiongetting the row index in c# Pin
RajpootRohan21-Jan-09 17:55
professionalRajpootRohan21-Jan-09 17:55 
AnswerRe: getting the row index in c# Pin
ColinM12321-Jan-09 18:11
ColinM12321-Jan-09 18:11 
GeneralRe: getting the row index in c# Pin
RajpootRohan21-Jan-09 18:16
professionalRajpootRohan21-Jan-09 18:16 
AnswerRe: getting the row index in c# Pin
dan!sh 21-Jan-09 19:22
professional dan!sh 21-Jan-09 19:22 

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.