Click here to Skip to main content
15,888,116 members
Home / Discussions / C#
   

C#

 
AnswerRe: Any snippet code for calling CoCreateGuid ??? Pin
Nader Elshehabi9-Apr-07 14:09
Nader Elshehabi9-Apr-07 14:09 
QuestionByte[] to HexString Pin
AAKAra9-Apr-07 12:52
AAKAra9-Apr-07 12:52 
AnswerRe: Byte[] to HexString Pin
Luc Pattyn9-Apr-07 14:04
sitebuilderLuc Pattyn9-Apr-07 14:04 
GeneralRe: Byte[] to HexString Pin
a_anilkumar110-Apr-07 15:38
a_anilkumar110-Apr-07 15:38 
AnswerRe: Byte[] to HexString Pin
Leslie Sanford9-Apr-07 14:06
Leslie Sanford9-Apr-07 14:06 
AnswerRe: Byte[] to HexString Pin
stancrm9-Apr-07 22:55
stancrm9-Apr-07 22:55 
AnswerRe: Byte[] to HexString Pin
stancrm10-Apr-07 21:02
stancrm10-Apr-07 21:02 
QuestionStarting a timer after another object's event has been fired. Pin
Ylno9-Apr-07 12:29
Ylno9-Apr-07 12:29 
Hello,


I've been puzzling over this all night.

I'm using the FileSystemWatcher(FSW) to monitor a folder and when a file is created within tis folder the FSW has an event handler which writes to a file thus logging the creation.

I want to use a Timer which will start within this event handler so that i can allow a set amount of time before doing my next task. To achieve this i tried declaring(and initalizing) the Timer within this event handler.
The problem is... if the event (creation of file) goes off more that once within the Timer's interval then I get mulitple Timers being created before the first timer has "gone-off".


Is there a way i can pass the Timer to the event handler so that i can Stop() it and then re- Start() it? Every time the creation event fires?

Or am i going about this the wrong way?

Thanks for any suggestions
AnswerRe: Starting a timer after another object's event has been fired. Pin
Leslie Sanford9-Apr-07 13:34
Leslie Sanford9-Apr-07 13:34 
GeneralRe: Starting a timer after another object's event has been fired. Pin
Ylno9-Apr-07 21:13
Ylno9-Apr-07 21:13 
GeneralRe: Starting a timer after another object's event has been fired. Pin
Leslie Sanford10-Apr-07 0:22
Leslie Sanford10-Apr-07 0:22 
QuestionInvalidate() Pin
max292979-Apr-07 11:59
max292979-Apr-07 11:59 
AnswerRe: Invalidate() Pin
Christian Graus9-Apr-07 12:09
protectorChristian Graus9-Apr-07 12:09 
QuestionRe: Invalidate() Pin
max292979-Apr-07 12:37
max292979-Apr-07 12:37 
AnswerRe: Invalidate() Pin
Leslie Sanford9-Apr-07 12:48
Leslie Sanford9-Apr-07 12:48 
QuestionRe: Invalidate() Pin
max292979-Apr-07 12:50
max292979-Apr-07 12:50 
AnswerRe: Invalidate() Pin
Leslie Sanford9-Apr-07 12:57
Leslie Sanford9-Apr-07 12:57 
GeneralRe: Invalidate() Pin
max292979-Apr-07 13:01
max292979-Apr-07 13:01 
AnswerOT: How's it going? Pin
Colin Angus Mackay9-Apr-07 13:20
Colin Angus Mackay9-Apr-07 13:20 
QuestionConvert xml to html files Pin
Amr M. K.9-Apr-07 9:38
Amr M. K.9-Apr-07 9:38 
AnswerRe: Convert xml to html files Pin
Not Active9-Apr-07 10:32
mentorNot Active9-Apr-07 10:32 
AnswerRe: Convert xml to html files Pin
Dmitry Khudorozhkov9-Apr-07 10:32
Dmitry Khudorozhkov9-Apr-07 10:32 
QuestionHow to change the sound on pop up DialogBox? Pin
Khoramdin9-Apr-07 9:10
Khoramdin9-Apr-07 9:10 
AnswerRe: How to change the sound on pop up DialogBox? Pin
Colin Angus Mackay9-Apr-07 9:16
Colin Angus Mackay9-Apr-07 9:16 
QuestionRedirect on restricted axs (C#.net) Pin
jcfordell9-Apr-07 8:13
jcfordell9-Apr-07 8:13 

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.