private void btntlm_Click(object sender, EventArgs e) { UserWindows.tlm gdc = new UserWindows.tlm(); gdc.Owner = this; gdc.ShowDialog(); if (gdc.DialogResult == DialogResult.OK) { MainForm frm1 = (MainForm)this.Owner; frm1.ChooseParaID = ChooseID; frm1.Pic = pic; this.DialogResult = DialogResult.OK; } }