Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Visual Studio C # I made a calculator, and now I have to make a calculator memor

ID: 3888586 • Letter: V

Question

Visual Studio C #

I made a calculator, and now I have to make a calculator memory (event).

There are 4 components here: one Textbox for the answer, two Buttons - "M" and "M+", and one Lable to display the answer again.

When the user clicks the “M” button, the contents of the Answer TextBox should be copied to a memory variable. Also make it so that when the user moves the mouse over the label, the value in the memory variable will appear in this label, and then disappear, when the mouse moves away from the label. Also add one more button, an “M+” button. When the user clicks this button, the contents of the Results box will be added to Memory. You will need to use a Global Variable to store this data.

Below is my code:

private String ans;
private Double answer;
private Double answerPlus;

private void btnM_Click(object sender, EventArgs e)
{
ans = txtDisplay.Text;
answer = double.Parse(ans);

}

private void lblblank_MouseEnter(object sender, EventArgs e)
{
  
lblblank.Show();   
lblblank.Text = answer.ToString();
}

private void lblblank_MouseLeave(object sender, EventArgs e)
{
lblblank.Hide();
}

private void btnMPlus_Click(object sender, EventArgs e)
{
answerPlus = answer + double.Parse(ans);

}

My problem is that the label doesn't appear when the mouse over the label, and also it doens't disappear when the mouse leave the label. How can I fix it?

And also, is this way the right way to use the Global variable?

Explanation / Answer

Program.cs

---------------------------------------------------

using System;

using System.Collections.Generic;

using System.Linq;

using System.Threading.Tasks;

using System.Windows.Forms;

namespace calculator {

static class Program {

/// <summary>

/// The main entry point for the application.

/// </summary>

[STAThread]

static void Main () {

Application.EnableVisualStyles();

Application.SetCompatibleTextRenderingDefault(false);

Application.Run(new Form1());

}

}

}

-----------------------------------------------------

Form1.cs

----------------------------------

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

using System.Windows.Forms;

namespace calculator {

enum stageType { operand1, modifier, operand2, equals }

public partial class Form1 : Form {

private float memory;

private bool sign;

private string firstNum;

private string secondNum;

private string myOperator;

private float result;

stageType stage;

public Form1 () {

InitializeComponent();

stage = stageType.operand1;

initCalculator();

clearMemory();

}

private void initCalculator () {

sign = true;

firstNum = "0";

secondNum = "0";

result = 0.0f;

stageType temp = stage;

stage = stageType.equals;

updateDisplay();

stage = temp;

}

private void btnBackspace_Click (object sender, EventArgs e) {

popEquation();

}

private void btnCE_Click (object sender, EventArgs e) {

popEquation(-1);

}

private void btnC_Click (object sender, EventArgs e) {

initCalculator();

}

private void btnMC_Click (object sender, EventArgs e) {

clearMemory();

}

private void btnMR_Click (object sender, EventArgs e) {

switch (stage) {

case stageType.operand1:

firstNum = memory.ToString();

break;

case stageType.operand2:

secondNum = memory.ToString();

break;

case stageType.equals:

result = memory;

break;

default:

break;

}

updateDisplay();

}

private void btnMS_Click (object sender, EventArgs e) {

if (stage == stageType.modifier) return; //error, cannot store an operator

try {

memory = float.Parse(txtOutput.Text);

txtM.Text = "M";

} catch(Exception ex) {

//do nothing

}

}

private void btnMPlus_Click (object sender, EventArgs e) {

switch (stage) {

case stageType.operand1:

try {

memory += float.Parse(firstNum);

} catch (ArgumentNullException ex) {

//do nothing

}

break;

case stageType.operand2:

try {

memory += float.Parse(secondNum);

} catch (ArgumentNullException ex) {

//do nothing

}

break;

case stageType.equals:

try {

memory += result;

} catch (ArgumentNullException ex) {

//do nothing

}

break;

default:

break;

}

}

private void btnDivide_Click (object sender, EventArgs e) {

if (stage == stageType.equals) {

firstNum = result.ToString();

}

stage = stageType.modifier;

addToEquation("/");

}

private void btnTimes_Click (object sender, EventArgs e) {

if (stage == stageType.equals) {

firstNum = result.ToString();

}

stage = stageType.modifier;

addToEquation("*");

}

private void btnMinus_Click (object sender, EventArgs e) {

if (stage == stageType.equals) {

firstNum = result.ToString();

}

stage = stageType.modifier;

addToEquation("-");

}

private void btnPlus_Click (object sender, EventArgs e) {

if (stage == stageType.equals) {

firstNum = result.ToString();

//secondNum = "";

}

stage = stageType.modifier;

addToEquation("+");

}

private void btnSqrt_Click (object sender, EventArgs e) {

double number;

switch (stage) {

case stageType.operand1:

firstNum = Math.Sqrt(double.Parse(firstNum)).ToString();

break;

case stageType.operand2:

secondNum = Math.Sqrt(double.Parse(secondNum)).ToString();

break;

case stageType.equals:

result = (float) Math.Sqrt(result);

break;

default:

break;

}

updateDisplay();

}

private void btnPercent_Click (object sender, EventArgs e) {

switch (stage) {

case stageType.operand1:

firstNum = (float.Parse(firstNum) / 100).ToString();

break;

case stageType.operand2:

secondNum = (float.Parse(secondNum) / 100).ToString();

break;

case stageType.equals:

result = (result / 100);

break;

default:

break;

}

updateDisplay();

}

private void btnInverse_Click (object sender, EventArgs e) {

switch (stage) {

case stageType.operand1:

firstNum = (1 / float.Parse(firstNum)).ToString();

break;

case stageType.operand2:

secondNum = (1 / float.Parse(secondNum)).ToString();

break;

case stageType.equals:

result = (result / 100);

break;

default:

break;

}

updateDisplay();

}

private void btnEquals_Click (object sender, EventArgs e) {

stage = stageType.equals;

updateDisplay();

}

private void btn0_Click (object sender, EventArgs e) {

if (stage == stageType.equals) stage = stageType.operand1;

if (stage == stageType.modifier) stage = stageType.operand2;

addToEquation("0");

}

private void btn1_Click (object sender, EventArgs e) {

if (stage == stageType.equals) stage = stageType.operand1;

if (stage == stageType.modifier) stage = stageType.operand2;

addToEquation("1");

}

private void btn2_Click (object sender, EventArgs e) {

if (stage == stageType.equals) stage = stageType.operand1;

if (stage == stageType.modifier) stage = stageType.operand2;

addToEquation("2");

}

private void btn3_Click (object sender, EventArgs e) {

if (stage == stageType.equals) stage = stageType.operand1;

if (stage == stageType.modifier) stage = stageType.operand2;

addToEquation("3");

}

private void btn4_Click (object sender, EventArgs e) {

if (stage == stageType.equals) stage = stageType.operand1;

if (stage == stageType.modifier) stage = stageType.operand2;

addToEquation("4");

}

private void btn5_Click (object sender, EventArgs e) {

if (stage == stageType.equals) stage = stageType.operand1;

if (stage == stageType.modifier) stage = stageType.operand2;

addToEquation("5");

}

private void btn6_Click (object sender, EventArgs e) {

if (stage == stageType.equals) stage = stageType.operand1;

if (stage == stageType.modifier) stage = stageType.operand2;

addToEquation("6");

}

private void btn7_Click (object sender, EventArgs e) {

if (stage == stageType.equals) stage = stageType.operand1;

if (stage == stageType.modifier) stage = stageType.operand2;

addToEquation("7");

}

private void btn8_Click (object sender, EventArgs e) {

if (stage == stageType.equals) stage = stageType.operand1;

if (stage == stageType.modifier) stage = stageType.operand2;

addToEquation("8");

}

private void btn9_Click (object sender, EventArgs e) {

if (stage == stageType.equals) stage = stageType.operand1;

if (stage == stageType.modifier) stage = stageType.operand2;

addToEquation("9");

}

private void btnReciprical_Click (object sender, EventArgs e) {

switch (stage) {

case stageType.operand1:

firstNum = (-float.Parse(firstNum)).ToString();

break;

case stageType.operand2:

secondNum = (-float.Parse(secondNum)).ToString();

break;

case stageType.equals:

result = (-result);

break;

default:

break;

}

updateDisplay();

}

private void btnDecimal_Click (object sender, EventArgs e) {

if (stage == stageType.equals) stage = stageType.operand1;

if (stage == stageType.modifier) stage = stageType.operand2;

addToEquation(".");

}

private void updateDisplay () {

//calculate new result

calculateResult();

switch (stage) {

case stageType.operand1:

txtOutput.Text = firstNum + " ";

break;

case stageType.modifier:

txtOutput.Text = firstNum + " " + myOperator + " ";

break;

case stageType.operand2:

txtOutput.Text = firstNum + " " + myOperator + " " + secondNum + " ";

break;

case stageType.equals:

firstNum = "0";

secondNum = "0";

txtOutput.Text = result.ToString() + " ";

break;

default:

break;

}

}

private void calculateResult () {

if (firstNum == null || secondNum == null || myOperator == null) {

return; //error

}

switch (myOperator) {

case "+":

result = float.Parse(firstNum) + float.Parse(secondNum);

break;

case "-":

result = float.Parse(firstNum) - float.Parse(secondNum);

break;

case "/":

result = float.Parse(firstNum) / float.Parse(secondNum);

if (float.IsInfinity(result)) result = 0.0f; //catch divide by zero exceptions

break;

case "*":

result = float.Parse(firstNum) * float.Parse(secondNum);

break;

default:

break; //error

}

}

private void addToEquation (string token) {

if (stage == stageType.operand1) {

if (firstNum == "0") firstNum = null;

firstNum += token;

myOperator = null;

secondNum = null;

} else if (stage == stageType.operand2) {

if (secondNum == "0") secondNum = null;

secondNum += token;

} else if (stage == stageType.modifier) {

myOperator = token;

secondNum = null;

}

updateDisplay();

}

private void popEquation (int amount = 1) {

int number = new int();

stageType temp = stage;

if (stage == stageType.operand1) {

try {

if (amount == -1) { firstNum = "0"; }

firstNum = firstNum.Substring(0, firstNum.Length - 1);

if (firstNum == null || firstNum.Length == 0) firstNum = "0";

} catch (Exception ex) {

//do nothing

}

} else if (stage == stageType.operand2) {

try {

if (amount == -1) { secondNum = "0"; }

secondNum = secondNum.Substring(0, secondNum.Length - 1);

if (secondNum == null || secondNum.Length == 0) secondNum = "0";

} catch(Exception ex) {

//do nothing

}

} else if (stage == stageType.modifier) {

myOperator = "";

} else if(stage == stageType.equals) {

initCalculator();

}

updateDisplay();

}

private void clearMemory () {

memory = 0.0f;

txtM.Text = "";

}

}

}

------------------------------------------------------------------------------------

Form1.Designer.cs

---------------------------------------------------

namespace calculator {

partial class Form1 {

/// <summary>

/// Required designer variable.

/// </summary>

private System.ComponentModel.IContainer components = null;

/// <summary>

/// Clean up any resources being used.

/// </summary>

/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>

protected override void Dispose (bool disposing) {

if (disposing && (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.btnMPlus = new System.Windows.Forms.Button();

this.btnEquals = new System.Windows.Forms.Button();

this.btn0 = new System.Windows.Forms.Button();

this.btn1 = new System.Windows.Forms.Button();

this.btnInverse = new System.Windows.Forms.Button();

this.btnMS = new System.Windows.Forms.Button();

this.btn4 = new System.Windows.Forms.Button();

this.btnPercent = new System.Windows.Forms.Button();

this.btnMR = new System.Windows.Forms.Button();

this.btn7 = new System.Windows.Forms.Button();

this.btnSqrt = new System.Windows.Forms.Button();

this.btnMC = new System.Windows.Forms.Button();

this.btn8 = new System.Windows.Forms.Button();

this.btn5 = new System.Windows.Forms.Button();

this.btn2 = new System.Windows.Forms.Button();

this.btnReciprical = new System.Windows.Forms.Button();

this.btn9 = new System.Windows.Forms.Button();

this.btn6 = new System.Windows.Forms.Button();

this.btn3 = new System.Windows.Forms.Button();

this.btnDecimal = new System.Windows.Forms.Button();

this.btnDivide = new System.Windows.Forms.Button();

this.btnTimes = new System.Windows.Forms.Button();

this.btnMinus = new System.Windows.Forms.Button();

this.btnPlus = new System.Windows.Forms.Button();

this.btnBackspace = new System.Windows.Forms.Button();

this.btnCE = new System.Windows.Forms.Button();

this.btnC = new System.Windows.Forms.Button();

this.txtOutput = new System.Windows.Forms.TextBox();

this.txtM = new System.Windows.Forms.TextBox();

this.SuspendLayout();

//

// btnMPlus

//

this.btnMPlus.Location = new System.Drawing.Point(11, 179);

this.btnMPlus.Name = "btnMPlus";

this.btnMPlus.Size = new System.Drawing.Size(38, 34);

this.btnMPlus.TabIndex = 0;

this.btnMPlus.Text = "M+";

this.btnMPlus.UseVisualStyleBackColor = true;

this.btnMPlus.Click += new System.EventHandler(this.btnMPlus_Click);

//

// btnEquals

//

this.btnEquals.Location = new System.Drawing.Point(237, 179);

this.btnEquals.Name = "btnEquals";

this.btnEquals.Size = new System.Drawing.Size(42, 34);

this.btnEquals.TabIndex = 1;

this.btnEquals.Text = "=";

this.btnEquals.UseVisualStyleBackColor = true;

this.btnEquals.Click += new System.EventHandler(this.btnEquals_Click);

//

// btn0

//

this.btn0.Location = new System.Drawing.Point(61, 179);

this.btn0.Name = "btn0";

this.btn0.Size = new System.Drawing.Size(42, 34);

this.btn0.TabIndex = 2;

this.btn0.Text = "0";

this.btn0.UseVisualStyleBackColor = true;

this.btn0.Click += new System.EventHandler(this.btn0_Click);

//

// btn1

//

this.btn1.Location = new System.Drawing.Point(61, 143);

this.btn1.Name = "btn1";

this.btn1.Size = new System.Drawing.Size(42, 34);

this.btn1.TabIndex = 5;

this.btn1.Text = "1";

this.btn1.UseVisualStyleBackColor = true;

this.btn1.Click += new System.EventHandler(this.btn1_Click);

//

// btnInverse

//

this.btnInverse.Location = new System.Drawing.Point(237, 143);

this.btnInverse.Name = "btnInverse";

this.btnInverse.Size = new System.Drawing.Size(42, 34);

this.btnInverse.TabIndex = 4;

this.btnInverse.Text = "1/x";

this.btnInverse.UseVisualStyleBackColor = true;

this.btnInverse.Click += new System.EventHandler(this.btnInverse_Click);

//

// btnMS

//

this.btnMS.Location = new System.Drawing.Point(11, 143);

this.btnMS.Name = "btnMS";

this.btnMS.Size = new System.Drawing.Size(38, 34);

this.btnMS.TabIndex = 3;

this.btnMS.Text = "MS";

this.btnMS.UseVisualStyleBackColor = true;

this.btnMS.Click += new System.EventHandler(this.btnMS_Click);

//

// btn4

//

this.btn4.Location = new System.Drawing.Point(61, 107);

this.btn4.Name = "btn4";

this.btn4.Size = new System.Drawing.Size(42, 34);

this.btn4.TabIndex = 8;

this.btn4.Text = "4";

this.btn4.UseVisualStyleBackColor = true;

this.btn4.Click += new System.EventHandler(this.btn4_Click);

//

// btnPercent

//

this.btnPercent.Location = new System.Drawing.Point(237, 107);

this.btnPercent.Name = "btnPercent";

this.btnPercent.Size = new System.Drawing.Size(42, 34);

this.btnPercent.TabIndex = 7;

this.btnPercent.Text = "%";

this.btnPercent.UseVisualStyleBackColor = true;

this.btnPercent.Click += new System.EventHandler(this.btnPercent_Click);

//

// btnMR

//

this.btnMR.Location = new System.Drawing.Point(11, 107);

this.btnMR.Name = "btnMR";

this.btnMR.Size = new System.Drawing.Size(38, 34);

this.btnMR.TabIndex = 6;

this.btnMR.Text = "MR";

this.btnMR.UseVisualStyleBackColor = true;

this.btnMR.Click += new System.EventHandler(this.btnMR_Click);

//

// btn7

//

this.btn7.Location = new System.Drawing.Point(61, 71);

this.btn7.Name = "btn7";

this.btn7.Size = new System.Drawing.Size(42, 34);

this.btn7.TabIndex = 11;

this.btn7.Text = "7";

this.btn7.UseVisualStyleBackColor = true;

this.btn7.Click += new System.EventHandler(this.btn7_Click);

//

// btnSqrt

//

this.btnSqrt.Location = new System.Drawing.Point(237, 71);

this.btnSqrt.Name = "btnSqrt";

this.btnSqrt.Size = new System.Drawing.Size(42, 34);

this.btnSqrt.TabIndex = 10;

this.btnSqrt.Text = "sqrt";

this.btnSqrt.UseVisualStyleBackColor = true;

this.btnSqrt.Click += new System.EventHandler(this.btnSqrt_Click);

//

// btnMC

//

this.btnMC.Location = new System.Drawing.Point(11, 71);

this.btnMC.Name = "btnMC";

this.btnMC.Size = new System.Drawing.Size(38, 34);

this.btnMC.TabIndex = 9;

this.btnMC.Text = "MC";

this.btnMC.UseVisualStyleBackColor = true;

this.btnMC.Click += new System.EventHandler(this.btnMC_Click);

//

// btn8

//

this.btn8.Location = new System.Drawing.Point(105, 71);

this.btn8.Name = "btn8";

this.btn8.Size = new System.Drawing.Size(42, 34);

this.btn8.TabIndex = 15;

this.btn8.Text = "8";

this.btn8.UseVisualStyleBackColor = true;

this.btn8.Click += new System.EventHandler(this.btn8_Click);

//

// btn5

//

this.btn5.Location = new System.Drawing.Point(105, 107);

this.btn5.Name = "btn5";

this.btn5.Size = new System.Drawing.Size(42, 34);

this.btn5.TabIndex = 14;

this.btn5.Text = "5";

this.btn5.UseVisualStyleBackColor = true;

this.btn5.Click += new System.EventHandler(this.btn5_Click);

//

// btn2

//

this.btn2.Location = new System.Drawing.Point(105, 143);

this.btn2.Name = "btn2";

this.btn2.Size = new System.Drawing.Size(42, 34);

this.btn2.TabIndex = 13;

this.btn2.Text = "2";

this.btn2.UseVisualStyleBackColor = true;

this.btn2.Click += new System.EventHandler(this.btn2_Click);

//

// btnReciprical

//

this.btnReciprical.Location = new System.Drawing.Point(105, 179);

this.btnReciprical.Name = "btnReciprical";

this.btnReciprical.Size = new System.Drawing.Size(42, 34);

this.btnReciprical.TabIndex = 12;

this.btnReciprical.Text = "+/-";

this.btnReciprical.UseVisualStyleBackColor = true;

this.btnReciprical.Click += new System.EventHandler(this.btnReciprical_Click);

//

// btn9

//

this.btn9.Location = new System.Drawing.Point(149, 71);

this.btn9.Name = "btn9";

this.btn9.Size = new System.Drawing.Size(42, 34);

this.btn9.TabIndex = 19;

this.btn9.Text = "9";

this.btn9.UseVisualStyleBackColor = true;

this.btn9.Click += new System.EventHandler(this.btn9_Click);

//

// btn6

//

this.btn6.Location = new System.Drawing.Point(149, 107);

this.btn6.Name = "btn6";

this.btn6.Size = new System.Drawing.Size(42, 34);

this.btn6.TabIndex = 18;

this.btn6.Text = "6";

this.btn6.UseVisualStyleBackColor = true;

this.btn6.Click += new System.EventHandler(this.btn6_Click);

//

// btn3

//

this.btn3.Location = new System.Drawing.Point(149, 143);

this.btn3.Name = "btn3";

this.btn3.Size = new System.Drawing.Size(42, 34);

this.btn3.TabIndex = 17;

this.btn3.Text = "3";

this.btn3.UseVisualStyleBackColor = true;

this.btn3.Click += new System.EventHandler(this.btn3_Click);

//

// btnDecimal

//

this.btnDecimal.Location = new System.Drawing.Point(149, 179);

this.btnDecimal.Name = "btnDecimal";

this.btnDecimal.Size = new System.Drawing.Size(42, 34);

this.btnDecimal.TabIndex = 16;

this.btnDecimal.Text = ".";

this.btnDecimal.UseVisualStyleBackColor = true;

this.btnDecimal.Click += new System.EventHandler(this.btnDecimal_Click);

//

// btnDivide

//

this.btnDivide.Location = new System.Drawing.Point(193, 71);

this.btnDivide.Name = "btnDivide";

this.btnDivide.Size = new System.Drawing.Size(42, 34);

this.btnDivide.TabIndex = 23;

this.btnDivide.Text = "/";

this.btnDivide.UseVisualStyleBackColor = true;

this.btnDivide.Click += new System.EventHandler(this.btnDivide_Click);

//

// btnTimes

//

this.btnTimes.Location = new System.Drawing.Point(193, 107);

this.btnTimes.Name = "btnTimes";

this.btnTimes.Size = new System.Drawing.Size(42, 34);

this.btnTimes.TabIndex = 22;

this.btnTimes.Text = "*";

this.btnTimes.UseVisualStyleBackColor = true;

this.btnTimes.Click += new System.EventHandler(this.btnTimes_Click);

//

// btnMinus

//

this.btnMinus.Location = new System.Drawing.Point(193, 143);

this.btnMinus.Name = "btnMinus";

this.btnMinus.Size = new System.Drawing.Size(42, 34);

this.btnMinus.TabIndex = 21;

this.btnMinus.Text = "-";

this.btnMinus.UseVisualStyleBackColor = true;

this.btnMinus.Click += new System.EventHandler(this.btnMinus_Click);

//

// btnPlus

//

this.btnPlus.Location = new System.Drawing.Point(193, 179);

this.btnPlus.Name = "btnPlus";

this.btnPlus.Size = new System.Drawing.Size(42, 34);

this.btnPlus.TabIndex = 20;

this.btnPlus.Text = "+";

this.btnPlus.UseVisualStyleBackColor = true;

this.btnPlus.Click += new System.EventHandler(this.btnPlus_Click);

//

// btnBackspace

//

this.btnBackspace.Location = new System.Drawing.Point(61, 38);

this.btnBackspace.Name = "btnBackspace";

this.btnBackspace.Size = new System.Drawing.Size(71, 27);

this.btnBackspace.TabIndex = 24;

this.btnBackspace.Text = "Backspace";

this.btnBackspace.UseVisualStyleBackColor = true;

this.btnBackspace.Click += new System.EventHandler(this.btnBackspace_Click);

//

// btnCE

//

this.btnCE.Location = new System.Drawing.Point(134, 38);

this.btnCE.Name = "btnCE";

this.btnCE.Size = new System.Drawing.Size(71, 27);

this.btnCE.TabIndex = 25;

this.btnCE.Text = "CE";

this.btnCE.UseVisualStyleBackColor = true;

this.btnCE.Click += new System.EventHandler(this.btnCE_Click);

//

// btnC

//

this.btnC.Location = new System.Drawing.Point(208, 38);

this.btnC.Name = "btnC";

this.btnC.Size = new System.Drawing.Size(71, 27);

this.btnC.TabIndex = 26;

this.btnC.Text = "C";

this.btnC.UseVisualStyleBackColor = true;

this.btnC.Click += new System.EventHandler(this.btnC_Click);

//

// txtOutput

//

this.txtOutput.Location = new System.Drawing.Point(11, 12);

this.txtOutput.Name = "txtOutput";

this.txtOutput.ReadOnly = true;

this.txtOutput.Size = new System.Drawing.Size(268, 20);

this.txtOutput.TabIndex = 27;

this.txtOutput.Text = "0 ";

this.txtOutput.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;

//

// txtM

//

this.txtM.Font = new System.Drawing.Font("Microsoft Sans Serif", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));

this.txtM.Location = new System.Drawing.Point(11, 38);

this.txtM.Name = "txtM";

this.txtM.ReadOnly = true;

this.txtM.Size = new System.Drawing.Size(38, 27);

this.txtM.TabIndex = 28;

this.txtM.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;

//

// Form1

//

this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);

this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;

this.ClientSize = new System.Drawing.Size(294, 221);

this.Controls.Add(this.txtM);

this.Controls.Add(this.txtOutput);

this.Controls.Add(this.btnC);

this.Controls.Add(this.btnCE);

this.Controls.Add(this.btnBackspace);

this.Controls.Add(this.btnDivide);

this.Controls.Add(this.btnTimes);

this.Controls.Add(this.btnMinus);

this.Controls.Add(this.btnPlus);

this.Controls.Add(this.btn9);

this.Controls.Add(this.btn6);

this.Controls.Add(this.btn3);

this.Controls.Add(this.btnDecimal);

this.Controls.Add(this.btn8);

this.Controls.Add(this.btn5);

this.Controls.Add(this.btn2);

this.Controls.Add(this.btnReciprical);

this.Controls.Add(this.btn7);

this.Controls.Add(this.btnSqrt);

this.Controls.Add(this.btnMC);

this.Controls.Add(this.btn4);

this.Controls.Add(this.btnPercent);

this.Controls.Add(this.btnMR);

this.Controls.Add(this.btn1);

this.Controls.Add(this.btnInverse);

this.Controls.Add(this.btnMS);

this.Controls.Add(this.btn0);

this.Controls.Add(this.btnEquals);

this.Controls.Add(this.btnMPlus);

this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;

this.MaximizeBox = false;

this.Name = "Form1";

this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;

this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;

this.Text = "Calculator";

this.ResumeLayout(false);

this.PerformLayout();

}

#endregion

private System.Windows.Forms.Button btnMPlus;

private System.Windows.Forms.Button btnEquals;

private System.Windows.Forms.Button btn0;

private System.Windows.Forms.Button btn1;

private System.Windows.Forms.Button btnInverse;

private System.Windows.Forms.Button btnMS;

private System.Windows.Forms.Button btn4;

private System.Windows.Forms.Button btnPercent;

private System.Windows.Forms.Button btnMR;

private System.Windows.Forms.Button btn7;

private System.Windows.Forms.Button btnSqrt;

private System.Windows.Forms.Button btnMC;

private System.Windows.Forms.Button btn8;

private System.Windows.Forms.Button btn5;

private System.Windows.Forms.Button btn2;

private System.Windows.Forms.Button btnReciprical;

private System.Windows.Forms.Button btn9;

private System.Windows.Forms.Button btn6;

private System.Windows.Forms.Button btn3;

private System.Windows.Forms.Button btnDecimal;

private System.Windows.Forms.Button btnDivide;

private System.Windows.Forms.Button btnTimes;

private System.Windows.Forms.Button btnMinus;

private System.Windows.Forms.Button btnPlus;

private System.Windows.Forms.Button btnBackspace;

private System.Windows.Forms.Button btnCE;

private System.Windows.Forms.Button btnC;

private System.Windows.Forms.TextBox txtOutput;

private System.Windows.Forms.TextBox txtM;

}

}