K
kkoolkev
Guest
I'm having a strange issue when using multiple WPF Forms
when the app starts it shows the main form. I have a button to launch a second form and I then hide the first form see code below
on form 2 there is a button to launch form 3 all using the showdiaglog() when i close form 3 i would expect form 1 to be hidden until form 2 is closed, but form 2 and 3 show
form 2 has the same code as below expect opening form3
Form2 l = new Form2(res, this)
{
Owner = this
};
this.Visibility = Visibility.Hidden;
l.ShowDialog();
this.Visibility = Visibility.Visible;
Continue reading...
when the app starts it shows the main form. I have a button to launch a second form and I then hide the first form see code below
on form 2 there is a button to launch form 3 all using the showdiaglog() when i close form 3 i would expect form 1 to be hidden until form 2 is closed, but form 2 and 3 show
form 2 has the same code as below expect opening form3
Form2 l = new Form2(res, this)
{
Owner = this
};
this.Visibility = Visibility.Hidden;
l.ShowDialog();
this.Visibility = Visibility.Visible;
Continue reading...