private void button1_Click(object sender, EventArgs e) { form_cliente.id = "0"; form_cliente clie = new form_cliente(); clie.Show(this); }
private void dtgClientes_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { int selectedrowindex = dtgClientes.SelectedCells[0].RowIndex; DataGridViewRow selectedRow = dtgClientes.Rows[selectedrowindex]; string codigo = Convert.ToString(selectedRow.Cells["id"].Value); form_cliente.id = codigo; form_cliente clie = new form_cliente(); clie.Show(this); }