xzh1993
 1 private void Form1_Load(object sender, EventArgs e)
 2         {
 3             radioButton2.Checked = true;
 4         }
 5         private void radioButton_CheckedChanged(object sender, EventArgs e)
 6         {
 7             if (radioButton2.Checked == true)
 8             {
 9                 pictureBox1.ImageLocation = @"C:\111.jpg";
10             }
11             else
12             {
13                 pictureBox1.ImageLocation = @"C:\000.jpg";
14             }
15 
16         }
View Code

插入图片最简单的代码pictureBox1.ImageLocation = @"C:\111.jpg";

不同情况插入不同图片

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-30
  • 2021-10-24
  • 2021-05-10
  • 2021-11-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-03
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案