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
Jump to PostEDIT: Damn, I just realized what was in the title... 'WPF'... lol sorry
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();
window2.Show();
this.Close();
}
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.