|
-
January 31st, 2012, 10:42 AM
#1
form label string to integer?
Im making a form with a label and I want the label to change into a number that counts upwards until I tell it to stop....I have a button I click to make it go already but it seems that I cant use numbers as the label...whats going on?
Here is my buttons code:
private: System::Void btnGo_Click(System::Object^ sender, System::EventArgs^ e)
{
int x = x + 1;
while ( x == x )
lblText->Text = x; // I know this is infinite loop thats what I want
}
Thanks Syx
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|