I have a program that when it starts, opens a winform (it is the one specified in Application.Run(new …). From this form I open another form:
OtherForm newForm=new OtherForm(); newForm.Show();
How can i communicate from the new winform with the form that opened it? So that I can add some items in it.
I think I have found the answer here: http://www.c-sharpcorner.com/UploadFile/mosessaur/winformsdelegates09042006094826AM/winformsdelegates.aspx
I have to use delegates. In the second form I define:
And from the form that opened it I write: