private void bttnDisplayEXIF_Click(object sender, EventArgs e) { string filename = dataGridView1.Rows[bs.Position].Cells["filename"].Value.ToString(); string folder = dataGridView1.Rows[bs.Position].Cells["folder"].Value.ToString(); string fullname = folder + "\\" + filename; exif = new frmDisplayExif(fullname); exif.Location = new Point(this.Location.X + this.Size.Width, this.Location.Y); exif.Show(); }
private void bttnExif_Click(object sender, EventArgs e) { if (selectedFile == "") { MessageBox.Show("No image file is selected to display EXIF data. Select one.", "No selected file", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return; } exifViewer = new frmDisplayExif(selectedFile); exifViewer.Location = new Point(this.Location.X + this.Size.Width, this.Location.Y); exifViewer.Show(); }