110,565
社区成员
发帖
与我相关
我的任务
分享
public Form1()
{
InitializeComponent();
this.pictureBox1.Click += new EventHandler(ShowInfo);
this.pictureBox2.Click += new EventHandler(ShowInfo);
}
public void ShowInfo(object sender, EventArgs e)
{
pictureBox3.Image = ((PictureBox)sender).Image;
label1.Text = ((PictureBox)sender).Location.ToString() ;
label1.Text += " "+((PictureBox)sender).SizeMode.ToString();
}