110,566
社区成员
发帖
与我相关
我的任务
分享
PictureBox Pb = new PictureBox();
private void button2_Click(object sender, EventArgs e)
{
Pb.Location = new Point(30, 30);
Pb.Size = new Size(300, 300);
this.Controls.Add(Pb);
Pb.Visible = true;
Pb.Show();
Pb.Image = Image.FromFile(@"F:\Other\MPC\HuangTing Pic\2007-02-04-00.bmp");
Pb.Click += new EventHandler(Pb_Click);
}
void Pb_Click(object sender, EventArgs e)
{
Pb.Location = new Point(350, 350);
}