private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e) { string strID = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString(); NewClient nw = new NewClient(); nw.ID = strID; nw.Show(); }
private void B_New_Click(object sender, EventArgs e) { NewClient nw = new NewClient(); nw.Show(); }