[Código fuente] C# Calculadora nivel Principiante
Publicado: 18 Jul 2014, 19:22
bueno estoy empezando en C# y bueno hice una calculadora de nivel principiante que lo único que hace es:
+Multiplicar 2 cajas de textos
+Resetear todo los valores
Código fuente:
Porfavor los mas avanzados que comenten cualquier mejora que pueda hacer(algún consejo)
Saludos
+Multiplicar 2 cajas de textos
+Resetear todo los valores
Código fuente:
Código: Seleccionar todo
using System.Windows.Forms;
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Data;
namespace Calculadora_principiante
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button2_Click(object sender, EventArgs e)
{
txtbox1.Text="0";
txtbox2.Text="0";
Lbl4.Text = "0";
}
private void button1_Click(object sender, EventArgs e)
{
Lbl4.Text = Convert.ToString(
Int64.Parse(txtbox1.Text) * Int64.Parse(txtbox2.Text)
);
}
}
}
Saludos