2015年1月8日 星期四

產生button


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 WindowsFormsApplication3
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button2_Click(object sender, EventArgs e)
{
button1.Location = new Point(100, 100);
}
private void button1_Click(object sender, EventArgs e)
{
MessageBox.Show ("hello!");
}
}
}

沒有留言:

張貼留言