[求助]单击图片时没有反映
private void Pinter_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e){
PictureBox pic = (PictureBox)sender;
if (pic.Name ==kaishipic.Name)
{
Picturenumber();
pictureBox1.Image = Image.FromFile(Directory.GetCurrentDirectory() + "\\image\\" + rdm[0] + ".jpg");
}
}
为什么我单击图片kaishipic时没有反映
事件我已经绑定了啊..
还有...单击到FORM上时,出现强制类型转换失败PictureBox pic = (PictureBox)sender;
怎么能屏蔽此类型转换呢.?