sing System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
Form2 newform;
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
int a,b,c;
string output;
a = int.Parse(textBox1.Text);
b = int.Parse(textBox2.Text);
c=a*b;
output = Convert.ToString(c);
textBox3.Text = output;
}
private void label1_Click(object sender, EventArgs e)
{
}
private void button2_Click(object sender, EventArgs e)
{
newform= new Form2();
newform.Show();
}
}
}
沒有留言:
張貼留言