string path = String.Empty; OpenFileDialog openfilwdilog1= new OpenFileDialog(); if (openfilwdilog1.ShowDialog() == DialogResult.OK) { path = openfilwdilog1.FileName; } // Image img = new Bitmap(path); panel1.BackgroundImage = Image.FromFile(path);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)