I wanted to display the image in the windows, but I already did this and the image did not appear.
Where am I wrong?
Here is the code:
private void Images(object sender, EventArgs e) { PictureBox pb1 = new PictureBox(); pb1.Image = Image.FromFile("../SamuderaJayaMotor.png"); pb1.Location = new Point(100, 100); pb1.Size = new Size(500, 500); this.Controls.Add(pb1); }
source share