PC Review


Reply
Thread Tools Rate Thread

How To Enter and Add Two Numbers on a Form?

 
 
koitaki@googlemail.com
Guest
Posts: n/a
 
      3rd Mar 2009
Hi,

Is it easy enough to build a form in VC++ that accepts numbers and
returns an answer?

I would like a form with
BoxA
BoxB
BoxC (which = BoxA + BoxB)

While the calculations are more involved, thats the gist of it.

I've spent all afternoon trying and I'm wondering just how complicated
is this seemingly trivial issue. My knowledge of C++ is limited to
fairly simple console numeric applications.

Thanks in advance if you can provide some useful advice.

Chris
 
Reply With Quote
 
 
 
 
koitaki@googlemail.com
Guest
Posts: n/a
 
      3rd Mar 2009
Sorted!

intBoxA = System::Int32::Parse(BoxA->text);
intBoxB = System::Int32::Parse(BoxB->text);
intBoxC = intBoxA + intBoxB;
BoxC->text = intBoxC.toString();

Haven't had time to test it yet, but seems to be on the right track.
If interested, I found the answer watching this MS video about Forms:
http://download.microsoft.com/downlo...ControlCPP.wmv
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I enter and add numbers during powerpoint presentation? Weprint Microsoft Powerpoint 2 10th Aug 2009 04:00 PM
Enter multiple numbers in a cell so total shows when enter keypres =?Utf-8?B?bmV3Ymll?= Microsoft Excel Worksheet Functions 2 19th Aug 2007 12:23 PM
Enter user name, enter password, then press enter... =?Utf-8?B?UGF1bCAoRVNJKQ==?= Microsoft Access Forms 6 11th Jul 2005 05:41 PM
How can replace two continous enter with single enter? =?Utf-8?B?cmFvIHJhdGFuIHNpbmdo?= Microsoft Word Document Management 2 14th Jun 2004 10:27 AM
Need formula to add numbers that meet two separate criteria from two separate columns mshroff Microsoft Excel Misc 2 11th Dec 2003 09:39 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:06 AM.