using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace NILADRICALCULATOR_CSHARP
{
	/// <summary>
	/// Summary description for Form1.
	/// </summary>
	public class Form1 : System.Windows.Forms.Form
	{
		private System.Windows.Forms.TextBox textBox1;
		private System.Windows.Forms.Button button1;
		private System.Windows.Forms.Button button2;
		private System.Windows.Forms.Button button3;
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.Button button4;
		private System.Windows.Forms.Button button5;
		private System.Windows.Forms.Button button6;
		private System.Windows.Forms.Button button7;
		private System.Windows.Forms.GroupBox groupBox2;
		private System.Windows.Forms.Button button8;
		private System.Windows.Forms.Button button9;
		private System.Windows.Forms.Button button10;
		private System.Windows.Forms.Button button11;
		private System.Windows.Forms.Button button12;
		private System.Windows.Forms.Button button13;
		private System.Windows.Forms.Button button14;
		private System.Windows.Forms.Button button15;
		private System.Windows.Forms.Button button16;
		private System.Windows.Forms.Button button17;
		private System.Windows.Forms.Button button18;
		private System.Windows.Forms.GroupBox groupBox3;
		private System.Windows.Forms.Button button19;
		private System.Windows.Forms.Button button20;
		private System.Windows.Forms.Button button21;
		private System.Windows.Forms.Button button22;
		private System.Windows.Forms.Button button23;
		private System.Windows.Forms.Button button24;
		private System.Windows.Forms.Button button25;
		private System.Windows.Forms.Button button26;
		private System.Windows.Forms.Button button27;
		private System.Windows.Forms.Button button28;
		private System.Windows.Forms.Button button29;
		private System.Windows.Forms.Button button30;
		private System.Windows.Forms.Button button31;
		private System.Windows.Forms.Button button32;
		private System.Windows.Forms.Button button33;
		private System.Windows.Forms.Button button34;
		private System.Windows.Forms.Button button35;
		private System.Windows.Forms.Button button36;
		private System.Windows.Forms.Button button37;
		private System.Windows.Forms.Button button38;
		private System.Windows.Forms.Button button39;
		private System.Windows.Forms.Button button40;
		private System.Windows.Forms.Button button41;
		private System.Windows.Forms.Button button42;
		private System.Windows.Forms.Button button43;
		private System.Windows.Forms.Label label1;
		
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public Form1()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if (components != null) 
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.textBox1 = new System.Windows.Forms.TextBox();
			this.button1 = new System.Windows.Forms.Button();
			this.button2 = new System.Windows.Forms.Button();
			this.button3 = new System.Windows.Forms.Button();
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.button7 = new System.Windows.Forms.Button();
			this.button6 = new System.Windows.Forms.Button();
			this.button5 = new System.Windows.Forms.Button();
			this.button4 = new System.Windows.Forms.Button();
			this.groupBox2 = new System.Windows.Forms.GroupBox();
			this.button31 = new System.Windows.Forms.Button();
			this.button18 = new System.Windows.Forms.Button();
			this.button17 = new System.Windows.Forms.Button();
			this.button16 = new System.Windows.Forms.Button();
			this.button15 = new System.Windows.Forms.Button();
			this.button14 = new System.Windows.Forms.Button();
			this.button13 = new System.Windows.Forms.Button();
			this.button12 = new System.Windows.Forms.Button();
			this.button11 = new System.Windows.Forms.Button();
			this.button10 = new System.Windows.Forms.Button();
			this.button9 = new System.Windows.Forms.Button();
			this.button8 = new System.Windows.Forms.Button();
			this.groupBox3 = new System.Windows.Forms.GroupBox();
			this.button43 = new System.Windows.Forms.Button();
			this.button42 = new System.Windows.Forms.Button();
			this.button41 = new System.Windows.Forms.Button();
			this.button40 = new System.Windows.Forms.Button();
			this.button39 = new System.Windows.Forms.Button();
			this.button38 = new System.Windows.Forms.Button();
			this.button37 = new System.Windows.Forms.Button();
			this.button36 = new System.Windows.Forms.Button();
			this.button35 = new System.Windows.Forms.Button();
			this.button34 = new System.Windows.Forms.Button();
			this.button33 = new System.Windows.Forms.Button();
			this.button32 = new System.Windows.Forms.Button();
			this.button30 = new System.Windows.Forms.Button();
			this.button29 = new System.Windows.Forms.Button();
			this.button28 = new System.Windows.Forms.Button();
			this.button27 = new System.Windows.Forms.Button();
			this.button26 = new System.Windows.Forms.Button();
			this.button25 = new System.Windows.Forms.Button();
			this.button24 = new System.Windows.Forms.Button();
			this.button23 = new System.Windows.Forms.Button();
			this.button22 = new System.Windows.Forms.Button();
			this.button21 = new System.Windows.Forms.Button();
			this.button20 = new System.Windows.Forms.Button();
			this.button19 = new System.Windows.Forms.Button();
			this.label1 = new System.Windows.Forms.Label();
			this.groupBox1.SuspendLayout();
			this.groupBox2.SuspendLayout();
			this.groupBox3.SuspendLayout();
			this.SuspendLayout();
			// 
			// textBox1
			// 
			this.textBox1.BackColor = System.Drawing.Color.White;
			this.textBox1.Location = new System.Drawing.Point(16, 16);
			this.textBox1.Name = "textBox1";
			this.textBox1.ReadOnly = true;
			this.textBox1.Size = new System.Drawing.Size(272, 20);
			this.textBox1.TabIndex = 0;
			this.textBox1.Text = "";
			this.textBox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
			// 
			// button1
			// 
			this.button1.Location = new System.Drawing.Point(88, 48);
			this.button1.Name = "button1";
			this.button1.Size = new System.Drawing.Size(120, 24);
			this.button1.TabIndex = 1;
			this.button1.Text = "BACKSPACE";
			this.button1.Click += new System.EventHandler(this.button1_Click);
			// 
			// button2
			// 
			this.button2.Location = new System.Drawing.Point(216, 48);
			this.button2.Name = "button2";
			this.button2.Size = new System.Drawing.Size(32, 24);
			this.button2.TabIndex = 3;
			this.button2.Text = "CE";
			this.button2.Click += new System.EventHandler(this.button2_Click);
			// 
			// button3
			// 
			this.button3.Location = new System.Drawing.Point(256, 48);
			this.button3.Name = "button3";
			this.button3.Size = new System.Drawing.Size(32, 24);
			this.button3.TabIndex = 4;
			this.button3.Text = "C";
			this.button3.Click += new System.EventHandler(this.button3_Click);
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.Add(this.button7);
			this.groupBox1.Controls.Add(this.button6);
			this.groupBox1.Controls.Add(this.button5);
			this.groupBox1.Controls.Add(this.button4);
			this.groupBox1.Location = new System.Drawing.Point(16, 80);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(320, 48);
			this.groupBox1.TabIndex = 5;
			this.groupBox1.TabStop = false;
			this.groupBox1.Text = "MEM OPERATIONS";
			// 
			// button7
			// 
			this.button7.Location = new System.Drawing.Point(128, 16);
			this.button7.Name = "button7";
			this.button7.Size = new System.Drawing.Size(32, 24);
			this.button7.TabIndex = 7;
			this.button7.Text = "M+";
			this.button7.Click += new System.EventHandler(this.button7_Click);
			// 
			// button6
			// 
			this.button6.Location = new System.Drawing.Point(88, 16);
			this.button6.Name = "button6";
			this.button6.Size = new System.Drawing.Size(32, 24);
			this.button6.TabIndex = 6;
			this.button6.Text = "MS";
			this.button6.Click += new System.EventHandler(this.button6_Click);
			// 
			// button5
			// 
			this.button5.Location = new System.Drawing.Point(48, 16);
			this.button5.Name = "button5";
			this.button5.Size = new System.Drawing.Size(32, 24);
			this.button5.TabIndex = 5;
			this.button5.Text = "MR";
			this.button5.Click += new System.EventHandler(this.button5_Click);
			// 
			// button4
			// 
			this.button4.Location = new System.Drawing.Point(8, 16);
			this.button4.Name = "button4";
			this.button4.Size = new System.Drawing.Size(32, 24);
			this.button4.TabIndex = 4;
			this.button4.Text = "MC";
			this.button4.Click += new System.EventHandler(this.button4_Click);
			// 
			// groupBox2
			// 
			this.groupBox2.Controls.Add(this.button31);
			this.groupBox2.Controls.Add(this.button18);
			this.groupBox2.Controls.Add(this.button17);
			this.groupBox2.Controls.Add(this.button16);
			this.groupBox2.Controls.Add(this.button15);
			this.groupBox2.Controls.Add(this.button14);
			this.groupBox2.Controls.Add(this.button13);
			this.groupBox2.Controls.Add(this.button12);
			this.groupBox2.Controls.Add(this.button11);
			this.groupBox2.Controls.Add(this.button10);
			this.groupBox2.Controls.Add(this.button9);
			this.groupBox2.Controls.Add(this.button8);
			this.groupBox2.Location = new System.Drawing.Point(16, 136);
			this.groupBox2.Name = "groupBox2";
			this.groupBox2.Size = new System.Drawing.Size(320, 80);
			this.groupBox2.TabIndex = 6;
			this.groupBox2.TabStop = false;
			this.groupBox2.Text = "VALUES";
			// 
			// button31
			// 
			this.button31.Location = new System.Drawing.Point(208, 48);
			this.button31.Name = "button31";
			this.button31.Size = new System.Drawing.Size(32, 24);
			this.button31.TabIndex = 20;
			this.button31.Text = "=";
			this.button31.Click += new System.EventHandler(this.button31_Click);
			// 
			// button18
			// 
			this.button18.Location = new System.Drawing.Point(168, 48);
			this.button18.Name = "button18";
			this.button18.Size = new System.Drawing.Size(32, 24);
			this.button18.TabIndex = 18;
			this.button18.Text = ".";
			this.button18.Click += new System.EventHandler(this.button18_Click);
			// 
			// button17
			// 
			this.button17.Location = new System.Drawing.Point(128, 48);
			this.button17.Name = "button17";
			this.button17.Size = new System.Drawing.Size(32, 24);
			this.button17.TabIndex = 17;
			this.button17.Text = "9";
			this.button17.Click += new System.EventHandler(this.button17_Click);
			// 
			// button16
			// 
			this.button16.Location = new System.Drawing.Point(88, 48);
			this.button16.Name = "button16";
			this.button16.Size = new System.Drawing.Size(32, 24);
			this.button16.TabIndex = 16;
			this.button16.Text = "8";
			this.button16.Click += new System.EventHandler(this.button16_Click);
			// 
			// button15
			// 
			this.button15.Location = new System.Drawing.Point(48, 48);
			this.button15.Name = "button15";
			this.button15.Size = new System.Drawing.Size(32, 24);
			this.button15.TabIndex = 15;
			this.button15.Text = "7";
			this.button15.Click += new System.EventHandler(this.button15_Click);
			// 
			// button14
			// 
			this.button14.Location = new System.Drawing.Point(8, 48);
			this.button14.Name = "button14";
			this.button14.Size = new System.Drawing.Size(32, 24);
			this.button14.TabIndex = 14;
			this.button14.Text = "6";
			this.button14.Click += new System.EventHandler(this.button14_Click);
			// 
			// button13
			// 
			this.button13.Location = new System.Drawing.Point(208, 16);
			this.button13.Name = "button13";
			this.button13.Size = new System.Drawing.Size(32, 24);
			this.button13.TabIndex = 13;
			this.button13.Text = "5";
			this.button13.Click += new System.EventHandler(this.button13_Click);
			// 
			// button12
			// 
			this.button12.Location = new System.Drawing.Point(168, 16);
			this.button12.Name = "button12";
			this.button12.Size = new System.Drawing.Size(32, 24);
			this.button12.TabIndex = 12;
			this.button12.Text = "4";
			this.button12.Click += new System.EventHandler(this.button12_Click);
			// 
			// button11
			// 
			this.button11.Location = new System.Drawing.Point(128, 16);
			this.button11.Name = "button11";
			this.button11.Size = new System.Drawing.Size(32, 24);
			this.button11.TabIndex = 11;
			this.button11.Text = "3";
			this.button11.Click += new System.EventHandler(this.button11_Click);
			// 
			// button10
			// 
			this.button10.Location = new System.Drawing.Point(88, 16);
			this.button10.Name = "button10";
			this.button10.Size = new System.Drawing.Size(32, 24);
			this.button10.TabIndex = 10;
			this.button10.Text = "2";
			this.button10.Click += new System.EventHandler(this.button10_Click);
			// 
			// button9
			// 
			this.button9.Location = new System.Drawing.Point(48, 16);
			this.button9.Name = "button9";
			this.button9.Size = new System.Drawing.Size(32, 24);
			this.button9.TabIndex = 9;
			this.button9.Text = "1";
			this.button9.Click += new System.EventHandler(this.button9_Click);
			// 
			// button8
			// 
			this.button8.Location = new System.Drawing.Point(8, 16);
			this.button8.Name = "button8";
			this.button8.Size = new System.Drawing.Size(32, 24);
			this.button8.TabIndex = 8;
			this.button8.Text = "0";
			this.button8.Click += new System.EventHandler(this.button8_Click);
			// 
			// groupBox3
			// 
			this.groupBox3.Controls.Add(this.button43);
			this.groupBox3.Controls.Add(this.button42);
			this.groupBox3.Controls.Add(this.button41);
			this.groupBox3.Controls.Add(this.button40);
			this.groupBox3.Controls.Add(this.button39);
			this.groupBox3.Controls.Add(this.button38);
			this.groupBox3.Controls.Add(this.button37);
			this.groupBox3.Controls.Add(this.button36);
			this.groupBox3.Controls.Add(this.button35);
			this.groupBox3.Controls.Add(this.button34);
			this.groupBox3.Controls.Add(this.button33);
			this.groupBox3.Controls.Add(this.button32);
			this.groupBox3.Controls.Add(this.button30);
			this.groupBox3.Controls.Add(this.button29);
			this.groupBox3.Controls.Add(this.button28);
			this.groupBox3.Controls.Add(this.button27);
			this.groupBox3.Controls.Add(this.button26);
			this.groupBox3.Controls.Add(this.button25);
			this.groupBox3.Controls.Add(this.button24);
			this.groupBox3.Controls.Add(this.button23);
			this.groupBox3.Controls.Add(this.button22);
			this.groupBox3.Controls.Add(this.button21);
			this.groupBox3.Controls.Add(this.button20);
			this.groupBox3.Controls.Add(this.button19);
			this.groupBox3.Location = new System.Drawing.Point(16, 224);
			this.groupBox3.Name = "groupBox3";
			this.groupBox3.Size = new System.Drawing.Size(320, 152);
			this.groupBox3.TabIndex = 7;
			this.groupBox3.TabStop = false;
			this.groupBox3.Text = "OPERATORS";
			// 
			// button43
			// 
			this.button43.Location = new System.Drawing.Point(128, 112);
			this.button43.Name = "button43";
			this.button43.Size = new System.Drawing.Size(32, 24);
			this.button43.TabIndex = 31;
			this.button43.Text = "X^3";
			this.button43.Click += new System.EventHandler(this.button43_Click);
			// 
			// button42
			// 
			this.button42.Location = new System.Drawing.Point(88, 112);
			this.button42.Name = "button42";
			this.button42.Size = new System.Drawing.Size(32, 24);
			this.button42.TabIndex = 30;
			this.button42.Text = "X^2";
			this.button42.Click += new System.EventHandler(this.button42_Click);
			// 
			// button41
			// 
			this.button41.Location = new System.Drawing.Point(48, 112);
			this.button41.Name = "button41";
			this.button41.Size = new System.Drawing.Size(32, 24);
			this.button41.TabIndex = 29;
			this.button41.Text = "e";
			this.button41.Click += new System.EventHandler(this.button41_Click);
			// 
			// button40
			// 
			this.button40.Location = new System.Drawing.Point(8, 112);
			this.button40.Name = "button40";
			this.button40.Size = new System.Drawing.Size(32, 24);
			this.button40.TabIndex = 28;
			this.button40.Text = "PI";
			this.button40.Click += new System.EventHandler(this.button40_Click);
			// 
			// button39
			// 
			this.button39.Location = new System.Drawing.Point(264, 16);
			this.button39.Name = "button39";
			this.button39.Size = new System.Drawing.Size(40, 24);
			this.button39.TabIndex = 27;
			this.button39.Text = "XOR";
			this.button39.Click += new System.EventHandler(this.button39_Click);
			// 
			// button38
			// 
			this.button38.Location = new System.Drawing.Point(264, 48);
			this.button38.Name = "button38";
			this.button38.Size = new System.Drawing.Size(40, 24);
			this.button38.TabIndex = 26;
			this.button38.Text = "NOT";
			this.button38.Click += new System.EventHandler(this.button38_Click);
			// 
			// button37
			// 
			this.button37.Location = new System.Drawing.Point(264, 80);
			this.button37.Name = "button37";
			this.button37.Size = new System.Drawing.Size(40, 24);
			this.button37.TabIndex = 25;
			this.button37.Text = "OR";
			this.button37.Click += new System.EventHandler(this.button37_Click);
			// 
			// button36
			// 
			this.button36.Location = new System.Drawing.Point(200, 80);
			this.button36.Name = "button36";
			this.button36.Size = new System.Drawing.Size(56, 24);
			this.button36.TabIndex = 24;
			this.button36.Text = "AND";
			this.button36.Click += new System.EventHandler(this.button36_Click);
			// 
			// button35
			// 
			this.button35.Location = new System.Drawing.Point(152, 80);
			this.button35.Name = "button35";
			this.button35.Size = new System.Drawing.Size(40, 24);
			this.button35.TabIndex = 23;
			this.button35.Text = "MOD";
			this.button35.Click += new System.EventHandler(this.button35_Click);
			// 
			// button34
			// 
			this.button34.Location = new System.Drawing.Point(104, 80);
			this.button34.Name = "button34";
			this.button34.Size = new System.Drawing.Size(40, 24);
			this.button34.TabIndex = 22;
			this.button34.Text = "X^Y";
			this.button34.Click += new System.EventHandler(this.button34_Click);
			// 
			// button33
			// 
			this.button33.Location = new System.Drawing.Point(64, 80);
			this.button33.Name = "button33";
			this.button33.Size = new System.Drawing.Size(32, 24);
			this.button33.TabIndex = 21;
			this.button33.Text = "ln";
			this.button33.Click += new System.EventHandler(this.button33_Click);
			// 
			// button32
			// 
			this.button32.Location = new System.Drawing.Point(8, 80);
			this.button32.Name = "button32";
			this.button32.Size = new System.Drawing.Size(48, 24);
			this.button32.TabIndex = 20;
			this.button32.Text = "LOG";
			this.button32.Click += new System.EventHandler(this.button32_Click);
			// 
			// button30
			// 
			this.button30.Location = new System.Drawing.Point(224, 48);
			this.button30.Name = "button30";
			this.button30.Size = new System.Drawing.Size(32, 24);
			this.button30.TabIndex = 19;
			this.button30.Text = "n!";
			this.button30.Click += new System.EventHandler(this.button30_Click);
			// 
			// button29
			// 
			this.button29.Location = new System.Drawing.Point(176, 48);
			this.button29.Name = "button29";
			this.button29.Size = new System.Drawing.Size(40, 24);
			this.button29.TabIndex = 18;
			this.button29.Text = "TAN";
			this.button29.Click += new System.EventHandler(this.button29_Click);
			// 
			// button28
			// 
			this.button28.Location = new System.Drawing.Point(128, 48);
			this.button28.Name = "button28";
			this.button28.Size = new System.Drawing.Size(40, 24);
			this.button28.TabIndex = 17;
			this.button28.Text = "COS";
			this.button28.Click += new System.EventHandler(this.button28_Click);
			// 
			// button27
			// 
			this.button27.Location = new System.Drawing.Point(88, 48);
			this.button27.Name = "button27";
			this.button27.Size = new System.Drawing.Size(32, 24);
			this.button27.TabIndex = 16;
			this.button27.Text = "SIN";
			this.button27.Click += new System.EventHandler(this.button27_Click);
			// 
			// button26
			// 
			this.button26.Location = new System.Drawing.Point(48, 48);
			this.button26.Name = "button26";
			this.button26.Size = new System.Drawing.Size(32, 24);
			this.button26.TabIndex = 15;
			this.button26.Text = "+/-";
			this.button26.Click += new System.EventHandler(this.button26_Click);
			// 
			// button25
			// 
			this.button25.Location = new System.Drawing.Point(8, 48);
			this.button25.Name = "button25";
			this.button25.Size = new System.Drawing.Size(32, 24);
			this.button25.TabIndex = 14;
			this.button25.Text = "1/x";
			this.button25.Click += new System.EventHandler(this.button25_Click);
			// 
			// button24
			// 
			this.button24.Location = new System.Drawing.Point(208, 16);
			this.button24.Name = "button24";
			this.button24.Size = new System.Drawing.Size(48, 24);
			this.button24.TabIndex = 13;
			this.button24.Text = "SQRT";
			this.button24.Click += new System.EventHandler(this.button24_Click);
			// 
			// button23
			// 
			this.button23.Location = new System.Drawing.Point(168, 16);
			this.button23.Name = "button23";
			this.button23.Size = new System.Drawing.Size(32, 24);
			this.button23.TabIndex = 12;
			this.button23.Text = "%";
			this.button23.Click += new System.EventHandler(this.button23_Click);
			// 
			// button22
			// 
			this.button22.Location = new System.Drawing.Point(128, 16);
			this.button22.Name = "button22";
			this.button22.Size = new System.Drawing.Size(32, 24);
			this.button22.TabIndex = 11;
			this.button22.Text = "/";
			this.button22.Click += new System.EventHandler(this.button22_Click);
			// 
			// button21
			// 
			this.button21.Location = new System.Drawing.Point(88, 16);
			this.button21.Name = "button21";
			this.button21.Size = new System.Drawing.Size(32, 24);
			this.button21.TabIndex = 10;
			this.button21.Text = "*";
			this.button21.Click += new System.EventHandler(this.button21_Click);
			// 
			// button20
			// 
			this.button20.Location = new System.Drawing.Point(48, 16);
			this.button20.Name = "button20";
			this.button20.Size = new System.Drawing.Size(32, 24);
			this.button20.TabIndex = 9;
			this.button20.Text = "-";
			this.button20.Click += new System.EventHandler(this.button20_Click);
			// 
			// button19
			// 
			this.button19.Location = new System.Drawing.Point(8, 16);
			this.button19.Name = "button19";
			this.button19.Size = new System.Drawing.Size(32, 24);
			this.button19.TabIndex = 8;
			this.button19.Text = "+";
			this.button19.Click += new System.EventHandler(this.button19_Click);
			// 
			// label1
			// 
			this.label1.BackColor = System.Drawing.Color.Gray;
			this.label1.Location = new System.Drawing.Point(16, 48);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(64, 24);
			this.label1.TabIndex = 8;
			// 
			// Form1
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(344, 382);
			this.Controls.Add(this.label1);
			this.Controls.Add(this.groupBox3);
			this.Controls.Add(this.groupBox2);
			this.Controls.Add(this.groupBox1);
			this.Controls.Add(this.button3);
			this.Controls.Add(this.button2);
			this.Controls.Add(this.button1);
			this.Controls.Add(this.textBox1);
			this.Name = "Form1";
			this.Text = "CALCULATOR";			
			this.groupBox1.ResumeLayout(false);
			this.groupBox2.ResumeLayout(false);
			this.groupBox3.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion

		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		///
		[STAThread]
			
		static void Main() 
		{
			Application.Run(new Form1());
		}
		//Class Variables that i declared .This are to be used throught the class
		private String First_Number;
		private String Second_Number;
		private String Operator;
		private void button8_Click(object sender, System.EventArgs e)
		{
			textBox1.Text =textBox1.Text +button8.Text; 
		}
		private void button9_Click(object sender, System.EventArgs e)
		{
		textBox1.Text =textBox1.Text +button9.Text;
		}
		private void button10_Click(object sender, System.EventArgs e)
		{
		textBox1.Text =textBox1.Text +button10.Text;
		}
		private void button11_Click(object sender, System.EventArgs e)
		{
			textBox1.Text =textBox1.Text +button11.Text;
		}
		private void button12_Click(object sender, System.EventArgs e)
		{
			textBox1.Text =textBox1.Text +button12.Text;
		}
		private void button13_Click(object sender, System.EventArgs e)
		{
			textBox1.Text =textBox1.Text +button13.Text;
		}
		private void button14_Click(object sender, System.EventArgs e)
		{
			textBox1.Text =textBox1.Text +button14.Text;
		}
		private void button15_Click(object sender, System.EventArgs e)
		{
			textBox1.Text =textBox1.Text +button15.Text;
		}
		private void button16_Click(object sender, System.EventArgs e)
		{
			textBox1.Text =textBox1.Text +button16.Text;
		}
		private void button17_Click(object sender, System.EventArgs e)
		{
			textBox1.Text =textBox1.Text +button17.Text;
		}
		private void button25_Click(object sender, System.EventArgs e)
		{
			float temp=1;
			textBox1.Text = (temp / float.Parse(textBox1.Text)).ToString();			
		}
		private void button3_Click(object sender, System.EventArgs e)
		{
			textBox1.Text ="";
		}
		private void button2_Click(object sender, System.EventArgs e)
		{
			textBox1.Text ="";
		}

		private void button1_Click(object sender, System.EventArgs e)
		{
			textBox1.Text =textBox1.Text.Substring (0,textBox1.Text.Length -1); 			
		}
		private void button4_Click(object sender, System.EventArgs e)
		{
			label1.Text ="";
		}
		private void button6_Click(object sender, System.EventArgs e)
		{
			label1.Text=textBox1.Text;
		}
		private void button24_Click(object sender, System.EventArgs e)
		{
			textBox1.Text = (Math.Sqrt(double.Parse(textBox1.Text ))).ToString();
		}
		private void button30_Click(object sender, System.EventArgs e)
		{
			int number;
			int fact;
			fact=1;
			number=Int32.Parse(textBox1.Text) ;
			for(int i=number;i>0;i--)
			{
				fact=fact*i;				
			}
			textBox1.Text=fact.ToString();			
		}
		private void button19_Click(object sender, System.EventArgs e)
		{
			First_Number=textBox1.Text ;
			Operator="+";
			textBox1.Text="";
		}
		private void button31_Click(object sender, System.EventArgs e)
		{
			Second_Number = textBox1.Text;	
			try
			{
				if (Operator.Equals("+"))
				{
					textBox1.Text = (Int32.Parse(First_Number) + Int32.Parse(Second_Number)).ToString();
				}
				if (Operator.Equals("-"))
				{
					textBox1.Text = (Int32.Parse(First_Number) - Int32.Parse(Second_Number)).ToString();
				}
				if (Operator.Equals("*"))
				{
					textBox1.Text = (Int32.Parse(First_Number) * Int32.Parse(Second_Number)).ToString();
				}
				if (Operator.Equals("/"))
				{
					textBox1.Text = (Int32.Parse(First_Number) / Int32.Parse(Second_Number)).ToString();
				}
				if (Operator.Equals("X^Y"))
				{
					
					textBox1.Text = (Math.Pow(double.Parse(First_Number),double.Parse(Second_Number))).ToString();
				}
				if (Operator.Equals("MOD"))
				{
					
					textBox1.Text = (double.Parse(First_Number)% double.Parse(Second_Number)).ToString();
				}
				if (Operator.Equals("AND"))
				{
					
					textBox1.Text = (int.Parse(First_Number) & int.Parse(Second_Number)).ToString();
				}
				if (Operator.Equals("OR"))
				{
					
					textBox1.Text = (int.Parse(First_Number) | int.Parse(Second_Number)).ToString();
				}
				if (Operator.Equals("XOR"))
				{
					
					textBox1.Text = (int.Parse(First_Number) ^ int.Parse(Second_Number)).ToString();
				}
			}
			catch(Exception equal_to){}          
		}
		private void button20_Click(object sender, System.EventArgs e)
		{
			First_Number=textBox1.Text ;
			Operator="-";
			textBox1.Text="";
		}
		private void button21_Click(object sender, System.EventArgs e)
		{
			First_Number=textBox1.Text ;
			Operator="*";
			textBox1.Text="";
		}
		private void button22_Click(object sender, System.EventArgs e)
		{
			First_Number=textBox1.Text ;
			Operator="/";
			textBox1.Text="";
		}
		private void button18_Click(object sender, System.EventArgs e)
		{
			if (button18.Text.Equals("."))
			{
				if ((textBox1.Text.IndexOf(".",0) >= 0))
					button18.Text = "";
			}
			textBox1.Text = textBox1.Text + button18.Text;
		}
		private void button26_Click(object sender, System.EventArgs e)
		{
			textBox1.Text=(float.Parse(textBox1.Text) * -1).ToString();			
		}
		private void button7_Click(object sender, System.EventArgs e)
		{
			textBox1.Text=((float.Parse(label1.Text))+(float.Parse(textBox1.Text))).ToString();
		}
		private void button23_Click(object sender, System.EventArgs e)
		{
			float temp=100;
			textBox1.Text = (Int32.Parse(textBox1.Text)/temp).ToString();			
		}
		private void button27_Click(object sender, System.EventArgs e)
		{
			textBox1.Text =(Math.Sin(double.Parse(textBox1.Text))).ToString();
		}
		private void button28_Click(object sender, System.EventArgs e)
		{
			textBox1.Text =(Math.Cos(double.Parse(textBox1.Text))).ToString();
		}
		private void button29_Click(object sender, System.EventArgs e)
		{
			textBox1.Text =(Math.Tan(double.Parse(textBox1.Text))).ToString();
		}
		private void button34_Click(object sender, System.EventArgs e)
		{
			First_Number=textBox1.Text ;
			Operator="X^Y";
			textBox1.Text="";
		}
		private void button35_Click(object sender, System.EventArgs e)
		{
			First_Number=textBox1.Text ;
			Operator="MOD";
			textBox1.Text="";
		}
		private void button32_Click(object sender, System.EventArgs e)
		{
			textBox1.Text =(Math.Log10(double.Parse(textBox1.Text))).ToString();
		}
		private void button33_Click(object sender, System.EventArgs e)
		{
			textBox1.Text =(Math.Log(double.Parse(textBox1.Text))).ToString();
		}
		private void button40_Click(object sender, System.EventArgs e)
		{
			double temp=Math.PI;
			textBox1.Text=temp.ToString ();
		}
		private void button41_Click(object sender, System.EventArgs e)
		{
			textBox1.Text =Math.E.ToString();
		}
		private void button42_Click(object sender, System.EventArgs e)
		{
			textBox1.Text = (Math.Pow(double.Parse(textBox1.Text),2)).ToString();			
		}
		private void button43_Click(object sender, System.EventArgs e)
		{
			textBox1.Text = (Math.Pow(double.Parse(textBox1.Text),3)).ToString();
		}
		private void button38_Click(object sender, System.EventArgs e)
		{
			textBox1.Text =(~(int.Parse(textBox1.Text))).ToString (); 
		}
		private void button39_Click(object sender, System.EventArgs e)
		{
			First_Number=textBox1.Text ;
			Operator="XOR";
			textBox1.Text="";
		}
		private void button36_Click(object sender, System.EventArgs e)
		{
			First_Number=textBox1.Text ;
			Operator="AND";
			textBox1.Text="";
		}
		private void button37_Click(object sender, System.EventArgs e)
		{
			First_Number=textBox1.Text ;
			Operator="OR";
			textBox1.Text="";
		}
		private void button5_Click(object sender, System.EventArgs e)
		{
			Second_Number = label1.Text;	
			try
			{
				if (Operator.Equals("+"))
				{
					textBox1.Text = (Int32.Parse(First_Number) + Int32.Parse(Second_Number)).ToString();
				}
				if (Operator.Equals("-"))
				{
					textBox1.Text = (Int32.Parse(First_Number) - Int32.Parse(Second_Number)).ToString();
				}
				if (Operator.Equals("*"))
				{
					textBox1.Text = (Int32.Parse(First_Number) * Int32.Parse(Second_Number)).ToString();
				}
				if (Operator.Equals("/"))
				{
					textBox1.Text = (Int32.Parse(First_Number) / Int32.Parse(Second_Number)).ToString();
				}
				if (Operator.Equals("X^Y"))
				{
					
					textBox1.Text = (Math.Pow(double.Parse(First_Number),double.Parse(Second_Number))).ToString();
				}
				if (Operator.Equals("MOD"))
				{
					
					textBox1.Text = (double.Parse(First_Number)% double.Parse(Second_Number)).ToString();
				}
				if (Operator.Equals("AND"))
				{
					textBox1.Text = (int.Parse(First_Number) & int.Parse(Second_Number)).ToString();
				}
				if (Operator.Equals("OR"))
				{
					textBox1.Text = (int.Parse(First_Number) | int.Parse(Second_Number)).ToString();
				}
				if (Operator.Equals("XOR"))
				{
					textBox1.Text = (int.Parse(First_Number) ^ int.Parse(Second_Number)).ToString();
				}
			}
			catch(Exception equal_to){}
		}		
	}
}
