TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Basic Calculator Program in using C#
Chandrashekhar Ghodke
Aug 18
2015
Code
1.2
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
BasicCalculator.rar
protected
void
ButtonNumberEqual_Click(
object
sender, EventArgs e)
{
try
{
string
Input = DisplayTextBox1.Text;
DataTable table =
new
DataTable();
Object answer;
answer = table.Compute(Input,
null
);
Answer.Text = answer.ToString();
DisplayTextBox1.Text = DisplayTextBox1.Text +
" = "
+ answer.ToString();
}
catch
{
Answer.Text =
"ERROR :("
;
}
}
C#
Calculator Program