How to show a value in an Edit Textbox
-
Hi guys, I've written an application in pure C++ and the command line and now I'd like to convert it to Windows. I am at the very first steps in using Windows Forms and I am wondering if anyone could be kind enough to help. To simplify the problem, let's suppose my application is composed of 2 input edit text boxes (Box1, Box2), a button (Calculate), and 1 output textbox (Box3). What is the correct code required to display the result of the calculation (Box1+Box2) in the output textbox (Box3)? I've read 1300 pages of the excellent Ivor Horton's Beginning C++ 2008 book....only to discover that this simple topic is not covered!! Many thanks jEDI
-
Hi guys, I've written an application in pure C++ and the command line and now I'd like to convert it to Windows. I am at the very first steps in using Windows Forms and I am wondering if anyone could be kind enough to help. To simplify the problem, let's suppose my application is composed of 2 input edit text boxes (Box1, Box2), a button (Calculate), and 1 output textbox (Box3). What is the correct code required to display the result of the calculation (Box1+Box2) in the output textbox (Box3)? I've read 1300 pages of the excellent Ivor Horton's Beginning C++ 2008 book....only to discover that this simple topic is not covered!! Many thanks jEDI
J_E_D_I wrote:
I've read 1300 pages of the excellent Ivor Horton's Beginning C++ 2008 book....only to discover that this simple topic is not covered!!
Really?? Somehow, I doubt converting a string to a number wasn't covered. Perhaps the Parse methods of the Int32 struct or the Convert class may help.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008