Click here to Skip to main content
15,918,003 members
Home / Discussions / C#
   

C#

 
GeneralRe: Programmatically access Start -> Run Pin
Pete O'Hanlon16-Nov-07 5:11
mvePete O'Hanlon16-Nov-07 5:11 
GeneralRe: Programmatically access Start -> Run Pin
Colin Angus Mackay16-Nov-07 5:14
Colin Angus Mackay16-Nov-07 5:14 
GeneralRe: Programmatically access Start -> Run Pin
mav.northwind16-Nov-07 4:32
mav.northwind16-Nov-07 4:32 
GeneralRe: Programmatically access Start -> Run Pin
dan!sh 16-Nov-07 4:47
professional dan!sh 16-Nov-07 4:47 
GeneralRe: Programmatically access Start -> Run Pin
leckey16-Nov-07 4:57
leckey16-Nov-07 4:57 
GeneralRe: Programmatically access Start -> Run Pin
duncanmhor16-Nov-07 5:08
duncanmhor16-Nov-07 5:08 
GeneralRe: Programmatically access Start -> Run Pin
Colin Angus Mackay16-Nov-07 5:12
Colin Angus Mackay16-Nov-07 5:12 
GeneralRe: Programmatically access Start -> Run Pin
Pete O'Hanlon16-Nov-07 5:10
mvePete O'Hanlon16-Nov-07 5:10 
GeneralRe: Programmatically access Start -> Run Pin
Judah Gabriel Himango16-Nov-07 5:15
sponsorJudah Gabriel Himango16-Nov-07 5:15 
GeneralRe: Programmatically access Start -> Run Pin
dan!sh 16-Nov-07 6:01
professional dan!sh 16-Nov-07 6:01 
JokeRe: Programmatically access Start -> Run Pin
Dan Neely16-Nov-07 4:43
Dan Neely16-Nov-07 4:43 
GeneralRe: Programmatically access Start -> Run Pin
dan!sh 16-Nov-07 6:03
professional dan!sh 16-Nov-07 6:03 
GeneralRUDE! Pin
leckey16-Nov-07 6:39
leckey16-Nov-07 6:39 
GeneralRe: RUDE! Pin
Anthony Mushrow16-Nov-07 6:47
professionalAnthony Mushrow16-Nov-07 6:47 
QuestionHelp Required Excell Version Problem Pin
mian ghous16-Nov-07 2:07
mian ghous16-Nov-07 2:07 
AnswerRe: Help Required Excell Version Problem Pin
dan!sh 16-Nov-07 2:41
professional dan!sh 16-Nov-07 2:41 
GeneralRe: Help Required Excell Version Problem Pin
mian ghous18-Nov-07 17:49
mian ghous18-Nov-07 17:49 
Questionhow can i fix this eventhandler, urgent* Pin
kevinskrazyklub16-Nov-07 1:44
kevinskrazyklub16-Nov-07 1:44 
QuestionRe: how can i fix this eventhandler, urgent* Pin
TJoe16-Nov-07 2:08
TJoe16-Nov-07 2:08 
Where is seconds declared and initialized? Is it set anywhere else in code? Where is SecondChangedEvent hooked up to the timer? What is the interval of the timer? What is the scope of the timer?

At first glance I would say that just because you are incrementing "seconds" in your timer handler, it's not a count of actual seconds (even if your timer is suppose to fire every second). It is better to save the start time when you start your timer, then calculate the numer of seconds that has passed.

private DateTime startTime = DateTime.Now;
 
// ...
 
private static void SecondChangedEvent(object source, ElapsedEventArgs e) {
    TimeSpan span = DateTime.Now - startTime;
    Int32 seconds = span.TotalSeconds;
    // ...
}



Take care,
Tom

-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com

AnswerRe: how can i fix this eventhandler, urgent* Pin
kevinskrazyklub16-Nov-07 2:30
kevinskrazyklub16-Nov-07 2:30 
GeneralRe: how can i fix this eventhandler, urgent* Pin
Luc Pattyn16-Nov-07 3:13
sitebuilderLuc Pattyn16-Nov-07 3:13 
QuestionCalling a vb6 dll with user-defined types from C#? Pin
Gadjuka16-Nov-07 1:24
Gadjuka16-Nov-07 1:24 
AnswerRe: Calling a vb6 dll with user-defined types from C#? Pin
Judah Gabriel Himango16-Nov-07 5:17
sponsorJudah Gabriel Himango16-Nov-07 5:17 
QuestionRe: Calling a vb6 dll with user-defined types from C#? [modified] Pin
Gadjuka18-Nov-07 21:41
Gadjuka18-Nov-07 21:41 
AnswerRe: Calling a vb6 dll with user-defined types from C#? Pin
Judah Gabriel Himango19-Nov-07 4:17
sponsorJudah Gabriel Himango19-Nov-07 4:17 

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.