Click here to Skip to main content
15,910,471 members
Home / Discussions / C#
   

C#

 
GeneralRe: timer problem Pin
Guffa4-Dec-08 20:38
Guffa4-Dec-08 20:38 
AnswerRe: timer problem Pin
Giorgi Dalakishvili4-Dec-08 9:16
mentorGiorgi Dalakishvili4-Dec-08 9:16 
AnswerRe: timer problem Pin
EliottA4-Dec-08 9:32
EliottA4-Dec-08 9:32 
GeneralRe: timer problem Pin
PIEBALDconsult4-Dec-08 17:35
mvePIEBALDconsult4-Dec-08 17:35 
AnswerRe: timer problem Pin
ricmil424-Dec-08 9:51
ricmil424-Dec-08 9:51 
GeneralRe: timer problem Pin
Dave Kreskowiak4-Dec-08 10:57
mveDave Kreskowiak4-Dec-08 10:57 
GeneralRe: timer problem Pin
Guffa4-Dec-08 20:40
Guffa4-Dec-08 20:40 
AnswerRe: timer problem Pin
_Maxxx_4-Dec-08 16:35
professional_Maxxx_4-Dec-08 16:35 
it isn't stepping through once - stick a breakpoint in to prove that.
it just has no effect the 2nd and subsequent times...

replace

if (populate.BackColor == Color.Black)


with
"else"

and all will be well.

Inidentally, if I were you, I would put
((Timer)sender).Stop();
at the start of yor buttin_Click event handler, and
((Timer)sender).Start();
at the end.

This stops the timer triggering while the code is still executing - and helps when you are debugging too!

If I knew then what I know today, then I'd know the same now as I did then - then what would be the point?

.\\axxx
(That's an 'M')

Questiondatatable.readxml problem Pin
Eli Nurman4-Dec-08 8:45
Eli Nurman4-Dec-08 8:45 
AnswerRe: datatable.readxml problem Pin
Andrew Rissing4-Dec-08 9:05
Andrew Rissing4-Dec-08 9:05 
GeneralRe: datatable.readxml problem Pin
Eli Nurman4-Dec-08 9:18
Eli Nurman4-Dec-08 9:18 
GeneralRe: datatable.readxml problem Pin
Andrew Rissing4-Dec-08 10:22
Andrew Rissing4-Dec-08 10:22 
QuestionReading files over network asynchronously Pin
CodingYoshi4-Dec-08 8:20
CodingYoshi4-Dec-08 8:20 
AnswerRe: Reading files over network asynchronously Pin
Le centriste4-Dec-08 8:36
Le centriste4-Dec-08 8:36 
AnswerRe: Reading files over network asynchronously Pin
Giorgi Dalakishvili4-Dec-08 8:40
mentorGiorgi Dalakishvili4-Dec-08 8:40 
GeneralRe: Reading files over network asynchronously Pin
CodingYoshi4-Dec-08 11:40
CodingYoshi4-Dec-08 11:40 
QuestionAuto Complete Textbox Pin
abdu2924-Dec-08 6:50
abdu2924-Dec-08 6:50 
AnswerRe: Auto Complete Textbox Pin
Wendelius4-Dec-08 6:56
mentorWendelius4-Dec-08 6:56 
GeneralRe: Auto Complete Textbox Pin
EliottA4-Dec-08 7:15
EliottA4-Dec-08 7:15 
QuestionRe: Auto Complete Textbox Pin
abdu2925-Dec-08 8:00
abdu2925-Dec-08 8:00 
QuestionIntellisense Not Working in App_Code Pin
packerfan19044-Dec-08 6:21
packerfan19044-Dec-08 6:21 
AnswerRe: Intellisense Not Working in App_Code Pin
Ben Fair4-Dec-08 6:28
Ben Fair4-Dec-08 6:28 
GeneralRe: Intellisense Not Working in App_Code Pin
Ben Fair4-Dec-08 6:29
Ben Fair4-Dec-08 6:29 
GeneralRe: Intellisense Not Working in App_Code Pin
packerfan19044-Dec-08 6:38
packerfan19044-Dec-08 6:38 
GeneralRe: Intellisense Not Working in App_Code Pin
Paul Conrad4-Dec-08 10:07
professionalPaul Conrad4-Dec-08 10:07 

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.