how can i handle calculator buutons in c# window form program
- by sama
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace lab8ass1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button11_Click(object sender, EventArgs e)
{
textBox1.Text += ".";
}
private void btnone_Click(object sender, EventArgs e)
{
textBox1.Text += "1";
}
private void btnrwo_Click(object sender, EventArgs e)
{
textBox1.Text += "2";
}
private void btnthree_Click(object sender, EventArgs e)
{
textBox1.Text += "3";
}
private void btnfour_Click(object sender, EventArgs e)
{
textBox1.Text += "4";
}
private void btnfive_Click(object sender, EventArgs e)
{
textBox1.Text += "5";
}
private void btnsix_Click(object sender, EventArgs e)
{
textBox1.Text += "6";
}
private void btnseven_Click(object sender, EventArgs e)
{
textBox1.Text += "7";
}
private void btneight_Click(object sender, EventArgs e)
{
textBox1.Text += "8";
}
private void btnnine_Click(object sender, EventArgs e)
{
textBox1.Text += "9";
}
private void btnzero_Click(object sender, EventArgs e)
{
textBox1.Text += "0";
}
string s1,s;
private void btnplus_Click(object sender, EventArgs e)
{
s1 = textBox1.Text;
textBox1.Text = "";
s = textBox1.Text;
//textBox1.Text
}
private void btnequal_Click(object sender, EventArgs e)
{
}
}
}
here my code how can i handle calculator buutons