close
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!");
}
}
}
點擊Button1,跳出MessageBox
點擊Button2,移動Button1位置
全站熱搜