根据你的问题我觉得你没在picturebox中导入图片,你看我的运行结果图:
private void Form1_Load(object sender, EventArgs e)
{
pictureBox1.Visible = false;
}
private void button1_Click(object sender, EventArgs e)
{
pictureBox1.Visible = true;
}
private void button2_Click(object sender, EventArgs e)
{
pictureBox1.Visible = false;
}
1
2
布局的时候pictureBox放在顶层。