hi,all
Please answered me
how to open a new window when i click th button on the current window.
Thanks&Regards
Ranjith kumar
How to open a new window when i click th button on the current window
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.


VulpesRank #55 · 29.2K reputationPosted Jan 20, 2012, 7:49 AM EST
Satyapriya NayakRank #47 · 31.5K reputationPosted Jan 20, 2012, 7:50 AM EST
First add a new window as Window2(Project-new window).
Then write the below code in the button_click even of window1 as below.
private void button1_Click(object sender, RoutedEventArgs e)
{
Window2 w2 = new Window2();
w2.Show();
this.Hide();
}
Thanks
RanjithKumar chiguruvada133 reputationPosted Jan 20, 2012, 7:58 AM EST
RanjithKumar chiguruvada133 reputationPosted Jan 20, 2012, 7:58 AM EST