0

I am attempting to add a .PNG image to a PictureBox, but it does not seem to be reading it.

public static String NoteImage_path = Environment.CurrentDirectory + @"\Notes-Images\";
ImageLocation = NoteImage_path + "test" + ".png";

With this exact code, I had no issues adding a .BMP file, so why is there an issue with the .PNG file?

Any help will be appreciated. Thanks!

Luke Xuereb
  • 73
  • 12

1 Answers1

0
  1. Add PictureBox on the form
  2. List item
  3. Browse Image property
  4. Resource Context
  5. Import button
  6. Chose Png file.

You can do it by code.

pictureBox1.Load(@"C:\Mine\download.png");
CodeMan
  • 671
  • 6
  • 13