lunes, 28 de septiembre de 2009

Practica 2.2 Visual





using System;

usingSystem.Collections.Generic;

usingSystem.ComponentModel;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Text;

usingSystem.Windows.Forms;

namespaceWindows2_3_practica_2

{

public partial class Form1 : Form

{

int v, t, d;

public Form1()

{

InitializeComponent();

v = t = d = 0;

}

private void label3_Click(object sender, EventArgs e)

{

}

private void button1_Click(object sender, EventArgs e)

{

v = int.Parse(textBox1.Text);

t = int.Parse(textBox2.Text);

d = v * t;

textBox3.Text = d.ToString();

}

private void button2_Click(object sender, EventArgs e)

{

textBox1.Clear();

textBox2.Clear();

textBox3.Clear();

}

private void button3_Click(object sender, EventArgs e)

{

Close();

}

}

}

No hay comentarios:

Publicar un comentario