private void btnSrc_Click(object sender, EventArgs e) { if (dlgSelFile.ShowDialog() == DialogResult.OK) { srcImage = dlgSelFile.FileName; src = new frmSource(); src.Show(); src.LoadImage(srcImage); } }