473,394 Members | 1,658 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

C++ .Net Simple Math Calc

Group,

I'm trying to add 2 textBox text... but some how does compile properly at
all...

textBox3->Text = textBox1->Text + textBox2->Text;
How would i fix this issue? Please HELP
Ronin

Nov 17 '05 #1
3 1002
Are you trying to add together numbers from those textBoxes? Or are you
trying to concatenate the strings?

maybe:
textBox3->Text = String::Concat(textBox1->Text, textBox2->Text);

or maybe something like:
textBox3->Text = (Double::Parse(textBox1->Text) +
Double::Parse(textBox2->Text)).ToString();

In C++/CLI (coming in VS 2005), your line will concatenate the strings.

"Ronin" <Ro***@discussions.microsoft.com> wrote in message
news:49**********************************@microsof t.com...
Group,

I'm trying to add 2 textBox text... but some how does compile properly at
all...

textBox3->Text = textBox1->Text + textBox2->Text;
How would i fix this issue? Please HELP
Ronin

Nov 17 '05 #2
Thanks for the response James. Both are helpful to know... so any
calculation... have to convert and parse the characters? did not know that...
i'm mainly a VB programmer... but i want to know all language... taking it
one step at a time.

Thanks again... a million.
Ronin

"James Park" wrote:
Are you trying to add together numbers from those textBoxes? Or are you
trying to concatenate the strings?

maybe:
textBox3->Text = String::Concat(textBox1->Text, textBox2->Text);

or maybe something like:
textBox3->Text = (Double::Parse(textBox1->Text) +
Double::Parse(textBox2->Text)).ToString();

In C++/CLI (coming in VS 2005), your line will concatenate the strings.

"Ronin" <Ro***@discussions.microsoft.com> wrote in message
news:49**********************************@microsof t.com...
Group,

I'm trying to add 2 textBox text... but some how does compile properly at
all...

textBox3->Text = textBox1->Text + textBox2->Text;
How would i fix this issue? Please HELP
Ronin


Nov 17 '05 #3

"Ronin" <Ro***@discussions.microsoft.com> wrote in message
news:EF**********************************@microsof t.com...
Thanks for the response James. Both are helpful to know... so any
calculation... have to convert and parse the characters? did not know
that...
i'm mainly a VB programmer... but i want to know all language... taking it
one step at a time.

Thanks again... a million.
Ronin

Ronin, you asked the same question in the academic newsgroup. Please check
there for additional responses.

--
Peter [MVP Visual Developer]
Jack of all trades, master of none.
Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Randi | last post by:
Hi, I am trying to write this program to get this shopping cart to work. I need to use the calc function to determine the option prices, using the selectedIndex property for each dropdown list. ...
2
by: Johnny | last post by:
I'm creating a Web page on which I want to do some math, and I'm pretty sure it's best don with Javascript, but I have no idea where to get started. Here's the deal. I want to allow the user to...
3
by: Andrew Elmore | last post by:
How can in read the values of a textbox and translate it to a math equation? like the calc. When the box validates if there is a decimal it rejects it and goes back to what it was (e.cancel) How...
3
by: JamesB | last post by:
I am trying to use the math.sin(value) function but it seems to give me the wrong answer! For instance, math.sin(1) is returning 0.84147098.... whereas windows calc doing 1 then pressing sin gives...
6
by: Caleb Hattingh | last post by:
Hi everyone Unless you have a nice tool handy, calculating many folder sizes for clearing disk space can be a click-fest nightmare. Looking around, I found Baobab (gui tool); the "du"...
24
by: firstcustomer | last post by:
Hi, Firstly, I know NOTHING about Javascript I'm afraid, so I'm hoping that someone will be able to point me to a ready-made solution to my problem! A friend of mine (honest!) is wanting to...
18
by: Franky | last post by:
I don't know how to ask this so that someone will not misread it but here goes. At run time I want to be able to evaluate functions from the Math library, but at design time I do not know what...
0
by: kirby.urner | last post by:
Cyber-curricula have a leveling aspect, as kids nearer Katrina's epicenter tune in and bliss out on 'Warriors of the Net' (why wait for stupid big dummy textbooks to catch up?). They feel more...
3
by: kimiraikkonen | last post by:
Hi there, I want to begin understanding how class libraries are written under VB.NET and how can i call them under my executable project. For example think an arithmetic calculator includes only...
17
by: Lenni | last post by:
Hi, I'm currently writing a web application for bicycle wheel builders that calculate the spoke length for all sorts of variations of hubs and rims. I have translated the formula from an...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.