I have a main window called form1. in form1 I have a button, when it is pressed it will open form2 (form2.ShowDialog()). In form2 I have a button called \"Check\". When the
This answer while not perfectly on target will be more useful to people that google themselves here for the general solution of how to communicate between windows:
There is no reason at all to set up events to access objects of the Main Window of you application. You can simply call them on the popup code and be done with it:
((MainWindow)Application.Current.MainWindow).textBox1.Text = "Some text";