// Browse file private void selectfile_Click(object sender, EventArgs e) { // Browse for file if (browsefile.ShowDialog(this) == DialogResult.OK) { // Set this file as background backgroundname = browsefile.FileName; backgroundsource = GridSetup.SOURCE_FILE; ImageData img = new FileImage(Path.GetFileNameWithoutExtension(backgroundname), backgroundname, false, 1.0f, 1.0f); General.DisplayZoomedImage(backgroundimage, new Bitmap(img.GetBackgroundBitmap())); img.Dispose(); } }