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

Closing a Page so the Parent Window displays the Default content

$
0
0

I have a Window, which default content is a menu system. when i press a button this code is triggered:

 Private Sub search_Click()
        Dim searchpage As New Search
        Me.Content = searchpage
    End Sub

this makes the window content display the search page. this is fine, now when i want to close the search page and display the default content, how do i do this?

and on the search page:

 Private Sub menu_click()
        ' Me.Close
        ' Me.Parent.
        ' Me.Content = vbNull
    End Sub


In WPF using VB.net in Visual Studio 2012.


Michael Booth


Viewing all articles
Browse latest Browse all 18858

Trending Articles



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