Hi all I have a theme thing for a form and as I understand you can have only one image for a PictureBox.
now I have a panel with buttons and each button related to an image that gets loaded into the pictureBox.
Code to load is like button 8
Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click
Form1.PictureBox1.Image = System.Drawing.Image.FromFile("E:\pictures\parrot.png")
End Sub
now the thing is 1: I want it that if you click on the button again it will remove the image from the PictureBox.
2: If there is an image in PictureBox1 then create PictureBox2 next to PictureBox1 and put an image in PictureBox2 and 3 and so on.( Can this be done )
now I have a panel with buttons and each button related to an image that gets loaded into the pictureBox.
Code to load is like button 8
Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click
Form1.PictureBox1.Image = System.Drawing.Image.FromFile("E:\pictures\parrot.png")
End Sub
now the thing is 1: I want it that if you click on the button again it will remove the image from the PictureBox.
2: If there is an image in PictureBox1 then create PictureBox2 next to PictureBox1 and put an image in PictureBox2 and 3 and so on.( Can this be done )