I am trying to get my button1 on window1 to close window1 and open window2, have you got any ideas on how this can be achieved.

Thank you in advance

Recommended Answers

All 2 Replies

EDIT: Damn, I just realized what was in the title... 'WPF'... lol sorry

// in Window1 button click
        private void button1_Click(object sender, RoutedEventArgs e)
            Window2 window2 = new Window2();
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.