I wanted to display an image to the windows forms, but i already did this and the image did not come out.
Where did I go wrong?
Here is the code:
private void Form1_Load(object sender, EventArgs e) { PictureBox pb = new PictureBox(); pb.Location = new Point(0, 0); pb.Size = new Size(150, 150); pb.Image = Image.FromFile("E:\\Wallpaper (204).jpg"); pb.Visible = true; this.Controls.Add(pb); }