PDA

View Full Version : C# idiot...



benxuk
08-21-2005, 06:31 PM
How do I make my console application not exit?

I have a timer w/elapsed event, but the event never calls because the code finishes and closes...

I forgot what I'm doing lol.

benxuk
08-21-2005, 07:36 PM
Would...



bool runState;
runState = 1;

While (runState)
{
//zip!
}

...work?

That should keep the program alive right?