timer in C++ Express 2005 ???

dear all

i'm still beginner in c++ express
i have form with textbox, label and one button, i neet to enter a time (number of minutes) in the textbox and display the time counting down in the label.

i tried to use this way:

1
2
3
4
5
Int16 i = Int16::Parse(textBox1->Text);
while(i>0){
 label1->Text=String::Concat(textBox1->Text, Convert::ToString(i), "Sec" );
 i--;
}

but it dosnt work!!!
do i have to use a timer? how make it counting down?

can i find any help here, plz

thnx.
Last edited on
Yes, you need to create a timer and handle the timer messages. The handler should update the static text.
Topic archived. No new replies allowed.