Programmer127
January 7th, 2007, 08:31 PM
How can I set the text of a textbox equal to "0" and add one to this value each time button1 is pressed? Thanks!
| // JP opened flex table
Click to See Complete Forum and Search --> : integer to System::String conversion Programmer127 January 7th, 2007, 08:31 PM How can I set the text of a textbox equal to "0" and add one to this value each time button1 is pressed? Thanks! cilu January 8th, 2007, 02:02 AM How can I set the text of a textbox equal to "0" and add one to this value each time button1 is pressed? Thanks! Assuming the text box is called box: box.Text += "0"; cilu January 8th, 2007, 02:02 AM [ redirected ] Zaccheus January 8th, 2007, 04:08 AM Or maybe: int count = int::Parse(box->Text); ++count; box->Text = count.ToString(); cilu January 8th, 2007, 08:04 AM Or maybe: int count = int::Parse(box->Text); ++count; box->Text = count.ToString(); Darn, I read the question completely wrong. ;) Yeah, of course your solution is the one. codeguru.com
Copyright 2007 Jupitermedia Corporation All Rights Reserved. |