hi,all
Please answered me
how to open a new window when i click th button on the current window.
Thanks&Regards
Ranjith kumar
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
RanjithKumar chiguruvadaPosted Jan 20, 2012, 12:58 PM
RanjithKumar chiguruvadaPosted Jan 20, 2012, 12:58 PM
Satyapriya NayakPosted Jan 20, 2012, 12:50 PM
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
VulpesPosted Jan 20, 2012, 12:49 PM