View Single Post
  #2 (permalink)  
Old 07-18-2006, 10:07 AM
NeedHelp NeedHelp is offline
Programming God
 
Join Date: May 2006
Posts: 527
Rep Power: 13
NeedHelp is on a distinguished road
Default

Ahh, this is managed C++? .NET 2.0?
Your timer interval is in seconds and you just want to display time left?

Code:
private: System::Void timer1_Tick(System::Object^ sender, System::EventArgs^ e)
{
// Update the timer
intTimerCounter++;


textBox2->Text = System::ConvertToString(30 - intTimerCounter);


if( intTimerCounter == 30 )
{
// If the timer reaches 30, disable
// the buttons
button1->Enabled = false;
button2->Enabled = false;
__________________
I Need Help
Reply With Quote