Informatica

Páginas: 3 (642 palabras) Publicado: 19 de noviembre de 2012
namespace proyecto1
{
public partial class frm_calculadora : Form

{

bool operacion = true;
string operaciones;
double numero1;
doublenumero2;
double resultado;
double guardamemoria;
double resp;
double numborrar;
public frm_calculadora()
{
InitializeComponent();
}private void tb_Normal_Click(object sender, EventArgs e)
{
panel1.Visible = true;
this.Size = new System.Drawing.Size(330, 389);panel2.Visible = false;

}

private void tb_programador_Click(object sender, EventArgs e)
{
this.Size = new System.Drawing.Size(572, 459);panel2.Visible = false;
panel1.Visible = true;
panel2.Visible = true;

}

private void b_1_Click(object sender, EventArgs e)
{if (operacion)
{
txt_resultado.Text = "";
txt_resultado.Text = "1";
operacion = false;
}
else{
txt_resultado.Text = txt_resultado.Text + "1";

}
}

private void b_2_Click(object sender, EventArgs e)
{
if (operacion){
txt_resultado.Text = "";
txt_resultado.Text = "2";
operacion = false;
}
else
{txt_resultado.Text = txt_resultado.Text + "2";

}
}

private void b_3_Click(object sender, EventArgs e)
{
if (operacion)
{txt_resultado.Text = "";
txt_resultado.Text = "3";
operacion = false;
}
else
{
txt_resultado.Text...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Informatica
  • Informatica
  • Informatica
  • Informatica
  • Informatica
  • Informática
  • Informatica
  • Informatica

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS