I have two forms. First one has one textbox.Second one has a devexpress data grid. I want to achieve that: first click a button and form2 opens. if I click a row in the data grid in form2, this value should be shown inside the textbox in form1.(form1 is already opened.) ı m a beginner. thanks for your help.
Form1 frm1 = new Form1();
frm1.textBox1.Text = gridView1.GetFocusedRowCellValue("ID").ToString();
frm1.Show();
when I do that, a new form opens. I dont want to open a new form. Form1 is already opened. I want to add values to its textbox.
form1.textBox1...
– Jef Patat