Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Newbie question on opening WPF Windows

$
0
0

Hi Guys

I have a project with 2 wpf windows called "MainWindow" and "Window1"

When the project starts it loads "MainWindow"

I have an image control which I use as a button when it is clicked "Window1" opens

I then close "MainWindow" using "Me.Hide"

I have anothere image as a button on "Window1" when clicked it closes "Window1" using "Me.Hide"

What I am trying to do is when the image is clicked I want it to re-open "MainWindow" before it closes itself

I have tried all sorts of code and read loads of articles but I just cant work it out

I though I could use "MainWindow.Show()" but I get an error everytime

Any Ideas

Mark



Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>