private void btnAssemblyinfo_Click(object sender, EventArgs e) { using (frmAssemblyExplorer frm = new frmAssemblyExplorer()) { if (frm.ShowDialog() == DialogResult.OK) { txtAssembly.Text = frm.SelectedForm.AssemblyInfo; txtFormName.Text = frm.SelectedForm.FormName; } } }