在flowLayoutPanel中成功插入了PictureBox,我想點擊PictureBox,然后彈出一個窗口顯示pictureBox中圖片,PictureBox picture = new PictureBox();picture.Image = Image.FromFile(TheFolder.GetFiles()[i].DirectoryName + "\\" + TheFolder.GetFiles()[i].Name); //獲取文件this.flowLayoutPanel1.Controls.Add(picture);然后我寫了個點擊PictureBox的處理函數,運行時候點擊PictureBox沒有任何反應private void picture_Click_1(object sender, EventArgs e){new Form2().Show();}求大大指教
添加回答
舉報
0/150
提交
取消