首页 > 代码库 > picturebox中添加图片
picturebox中添加图片
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 else12 {13 pictureBox1.ImageLocation = @"C:\000.jpg";14 }15 16 }
插入图片最简单的代码pictureBox1.ImageLocation = @"C:\111.jpg";
不同情况插入不同图片
picturebox中添加图片
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。