September 21, 2011

程式設計3

using 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 WindowsFormsApplication2
{
    public partial class Form1 : Form
    {
    public Form1()
    {
    InitializeComponent();
    }

    private void label1_Click(object sender, EventArgs e)
    {

    }

    private void label3_Click(object sender, EventArgs e)
    {

    }

    private void button2_Click(object sender, EventArgs e)
    {
    Close();
    }

    private void button1_Click(object sender, EventArgs e)
    {
    int num1 = Convert.ToInt16(textN1.Text);
    int num2 = Convert.ToInt16(textN2.Text);
    int result = num1 + num2;
    lblResult.Text=num1 +"+"+ num2+"="+result;
    }
    }
 }

0推薦此文章
Today's Visitors: 0 Total Visitors: 1
Personal Category: Uncategorized Articles Topic: creation / literature / poetry
[Trackback URL]

Post A Comment









Yes No



Please input the magic number:

( Prevent the annoy garbage messages )
( What if you cannot see the numbers? )
Please input the magic number

誰來收藏
Loading ...
unlog_NVPO 0