I have Window1, that has a function that sends
public void proba()
{
MessageBox.Show(this.comboBoxTipUnosa.Text);
}
and on a button click it has
Window2 win2= new Window2();
win2.textBoxOne.Text = selectedString;
win2.ShowDialog();
If from Window2,on a button click I go with code
Window1 win1 = new Window1();
win1.proba();
I get a blank messagebox.But if a MessageBox is declared with MessageBox.show("some text"); it works.
This is just a test that I want to get throught.My final idea is to have a method in Window1 that will have the code for sql insert query, with the textboxes from Window1 and I will need that method to be called after a button is clicked on Window2.