0binary1
January 22nd, 2009, 01:06 PM
Hello everybody,
I'm new to C++. I am using microsoft C++ 2005 express edition. I have set a timer to 30 seconds. I need to display a countdown timer in a text box but can't figure out how. It is a college project and I asked my instructor for help and he says I'm close, but won't give me the answer. Here's the line of code I'm using:
textBox2->Text = System::Convert::ToString(30-intTimerCounter);
If you'd like to see my full code, just ask. I'm not new to programming, just C++. I'm experienced in Visual Basic and HTML coding. I have spent a few hours trying to figure this out and am starting to get frustrated.
Thanks in advance,
.bin
I'm new to C++. I am using microsoft C++ 2005 express edition. I have set a timer to 30 seconds. I need to display a countdown timer in a text box but can't figure out how. It is a college project and I asked my instructor for help and he says I'm close, but won't give me the answer. Here's the line of code I'm using:
textBox2->Text = System::Convert::ToString(30-intTimerCounter);
If you'd like to see my full code, just ask. I'm not new to programming, just C++. I'm experienced in Visual Basic and HTML coding. I have spent a few hours trying to figure this out and am starting to get frustrated.
Thanks in advance,
.bin