I open a datagrid when I double-click the textbox in my form1. I need to give two clicks on a cell of datagrid in form2 and when I click it already bring value to the textbox in form1. I've tried many ways no longer works, which he already ran automatically adds the value in the textbox before I click the cell, can anyone help?
I tried this:
in form1
Ncm Ncm formNcm = new ();
formNcm.Show ();
ncmcb.Text formNcm.getNCM = ();
ncmcb.Focus ();
the form2
public string getNCM () { = dataGridView1.CurrentCell.Value.ToString value2 string (); return value2; } Only this way it selects already own the value of the datagrid and I can not change, if I change it does not take the value for the textbox in form1