private void button6_Click(object sender, EventArgs e)
{
OpenFileDialog fd = new OpenFileDialog();
fd.Filter = "Image Files(*.jpg; *.jpeg; *.gif; *.bmp)|*.jpg; *.jpeg; *.gif; *.bmp";
fd.ShowDialog();
pictureBox12.ImageLocation = fd.FileName;
textBox35.Text = fd.FileName;
if (pictureBox12.ImageLocation == fd.FileName)
{
OpenFileDialog fd2 = new OpenFileDialog();
fd2.ShowDialog();
pictureBox11.ImageLocation = fd2.FileName;
}
}
我有 2 个图片框和 1 个上传按钮 我想要第一次单击按钮并打开 showdialog 并选择照片和 closeshowdialog 并再次单击按钮这次选择第二个图片框但问题是第一次单击按钮并逐步打开 showdialog