private void button2_Click(object sender, EventArgs e) { arogyaClaim ac = new arogyaClaim(); this.Hide(); ac.Show(); }
private void dataGrid_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { string name, info; name = dataGrid.Rows[e.RowIndex].Cells[1].Value.ToString(); info = dataGrid.Rows[e.RowIndex].Cells[2].Value.ToString(); this.Hide(); if (ctxt == "arogyaClaim") { arogyaClaim ac = (arogyaClaim)Application.OpenForms["arogyaClaim"]; ac.ddesc.Text = name; ac.dinfo.Text = info; } else if (ctxt == "claimcell") { claimcell c = (claimcell)Application.OpenForms["claimcell"]; c.ddesc.Text = name; c.dinfo.Text = info; c.amount.Text = ""; } }