pls Help me
Code to manipulate numbers and display in textBox
Sir, I am in the task of creating a Windows Form Calculator. I want formula to manipulate and Display numbers in textbox.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Pankaj PandeyPosted May 13, 2013, 8:44 AM
i a, getting a little what you need.
try below code it is for only two number multiplication or other actions.
Mark as answered if helpfull
Textbox1.Text=result.tostring();
Pankaj PandeyPosted May 14, 2013, 8:48 AM
good to see that you got code.
thanks
Bineesh ViswanathPosted May 14, 2013, 6:05 AM
using System;
Pankaj PandeyPosted May 14, 2013, 3:24 AM
you can put this code at button event which do you want to show result. just like window calculater programm.
Bineesh ViswanathPosted May 14, 2013, 2:54 AM
anyway thank you for the solution.
Pankaj PandeyPosted May 13, 2013, 9:15 AM
You can also use switch-case on place of if-control statement in my given code.
thanks
Bineesh ViswanathPosted May 13, 2013, 6:29 AM
I am using only one textbox. I want to perform all functions which a calculator does.
I passed the button value to textbox.
but i can't write code for addition, multiplication,division and subtraction of two numbers.
Help me to find the formula to Calculate and Display the result in same Textbox.
Pankaj PandeyPosted May 13, 2013, 5:47 AM
Kindly explain your que a little more.
I Didn't get your actual requirment.
thanks