Maha

Maha

  • NA
  • 600
  • 67k

Path for the pictureBox

Dec 4 2015 4:35 PM

I want display an icon in the picture box. I gave path for icon in following way, it is highlighted is the program. But program is not executing. In attachment you can see the path I gave. Icon number is 12 inside the folder that is why I gave 12 number.

namespace ControlsDemoApp

{

    public partial class Form1 : Form

    {

        public Form1()

        {

            InitializeComponent();

        }

 

        private void pictureBox2_Click(object sender, EventArgs e)

        {

            pictureBox2.Load("C:\Users\\Maha\Desktop\Icons\12");

           

        }

    }

}


Attachment: path.zip

Answers (23)