How can i close all forms
I use wpf vb 2010
To load other form i use like
Private frm As MainWindow = New MainWindow
to open the window i used frm.Show()
and to close it i use frm.Close()
Now I have two forms like form1 and form2
I want to open form2 when i click on the button - ok it's easy
The Question How can i closed form1 from form2 when i open form2 using button
when i user
Private frm As form1 = New form1
frm.Close()
It like a cricle and can't closed