Good day all
I do not know what is the control to add the time in my text box? I have made a window form application simple game that you have to click buttons for 30 seconds. The application works except to view the time.
I think I did put the textBox2 line at the right place but I don't know what to write as command after in order to see the variable "intTimerCounter"?
Here is part of the code and I have put question mark where I seem to miss info.
private: System::Void timer1_Tick(System::Object^ sender, System::EventArgs^ e)
{
// Update the timer
intTimerCounter++;
textBox2->???? = intTimerCounter;
if( intTimerCounter == 30 )
{
// If the timer reaches 30, disable
// the buttons
button1->Enabled = false;
button2->Enabled = false;
Thank you in advance


LinkBack URL
About LinkBacks




Reply With Quote








Bookmarks
Algorithms and Data Structures
Java tutorials
Algorithms Forum