Posts

Showing posts with the label C#

C#'s Calulator Code

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 Calculator {     public partial class Form1 : Form     {         public Form1()         {             InitializeComponent();         }         bool plus, minus, mul, div, equal= false;         private void button12_Click(object sender, EventArgs e)         {             equal = true;             if (plus)             {                 decimal dec = Convert.ToDecimal(txtboxscr.Tag) + Convert.ToDecimal(txtboxscr.Text);                 txtbo...