Form1.cs Form2 f2 = new Form2(); f2.ShowDialog(); public void UpdateListBox(string lstValue) { listBox1.Items.Add(lstValue); } Form2.cs Form1 f1= (Form1)Application.OpenForms["Form1"]; f1.UpdateListBox(textBox1.Text);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)