sebastian RRS feed

  • Question

  •  if i create an application wpf on visual studio, and i have a window1(form) and a window2(form) how can i for the window1 show
     the another window2 doing click in a button.

    my e-mail= sebasblake@hotmail.com

    their pontecial my passion
    Tuesday, June 10, 2008 9:01 PM


  • Howdy,

    You need to instantiate a new Window2, which then allows you to call methods on that form such as Show().

    So a quick example is:

    In your button click event handler in code add something like the following

    Window2 myNewWindow = new Window2();

    This should bring up your Window.

    Learn Expression Blend at learnexpressionstudio.com -- my blog : http://x-coders.com/blogs/sneaky/default.aspx
    Thursday, June 12, 2008 10:39 AM