Windows Forms App: type conversion

Apr 30, 2011 at 10:33pm
I am trying to make an app int visual c++, and its a windows forms app.I want to get a number from the user and do calculations with it. The problem is that textboxes use strings, and I want numbers. How do I get around this.
May 1, 2011 at 1:03am
closed account (3hM2Nwbp)
 
System::Int32 System::Int32::Parse(System::String^ string); // <- Warning, may throw. 


Similar methods exist for System::Double and the rest of Microsoft's managed data types.
Last edited on May 1, 2011 at 1:04am
Topic archived. No new replies allowed.