do any one know any command that take the number in the textbox to a calculation by itself?

eg.
imagine textbox below I type 1234+4214312
| 1234+4214312 |

is there any command that will calculate it?

like this is the eg.
variableA =(command for calcualtion) int32.parse(textbox.text);


actually I am trying to do a short cut method if possible for a simple pluse minus div and time and also with brackets ( ) that mean do the sum (B+C) first in A(B+C) calculator. The calculation operation have to be observed. so I type out the oparation in the textbox nicely like

textbox
1 + 2 / 3 *(2+5)/200 - 5

and the equal button will be coding with,

calculate textbox = A;

textbox.Text += string.Format("add equal sign" A);

there is some error up here I don know how to do. cannot find ways.


this is the way I add in the button command same goes to the number button
Code: C#
private void button12_Click(object sender, EventArgs e)
{
    textBox1.Text += " - ";
}

private void button13_Click(object sender, EventArgs e)
{
    textBox1.Text += " * ";
}

private void button14_Click(object sender, EventArgs e)
{
    textBox1.Text += " / ";
}

private void button16_Click(object sender, EventArgs e)
{
    textBox1.Text += " *( ";
}

private void button17_Click(object sender, EventArgs e)
{
    textBox1.Text += " ) ";
}
anyone can help me some. Sorry for the my bad english.

Last edited by shabbir; 31Jul2006 at 10:18.. Reason: Code formating.