private void button1_Click(object sender, EventArgs e) { frmGRDataLast f = new frmGRDataLast(); f.ShowDialog(this); }
/// <summary> /// /// </summary> /// <returns></returns> private frmGRDataLast GetGRDataLastForm() { foreach (Form f in this.MdiChildren) { if (f is frmGRDataLast) { return (frmGRDataLast)f; } } frmGRDataLast nf = new frmGRDataLast(); nf.MdiParent = this; return nf; }