I am trying to display icon file in a picture box. I\'m using this code to set the image.
icon file
pictureBox1.Image = new Icon(openFileDialog.FileName,
Solved the problem.
pictureBox1.Image = Bitmap.FromHicon(new Icon(openFileDialog.FileName, new Size(48, 48)).Handle);