locked
Stack like opened windows RRS feed

  • Question

  • Hi,i want to know how to open a window from another window and disable previous window, for example if a user open a window from menu in main window and second window appears then he'll be unable to click first window until he close newly opened window.

    thanks.

    Friday, July 20, 2012 3:47 PM

Answers

  • Use Form's Show method instead of ShowDialog

    If this post answers your question, please click Mark As Answer. If this post is helpful please click Mark as Helpful.

    Regards,
    Nair S

    • Marked as answer by muupp Friday, July 20, 2012 4:46 PM
    Friday, July 20, 2012 4:18 PM
  • What you are asking about are modal windows.  Simply create your new window and use the ShowDialog method to show it.  This will ensure that the window that created/called the new window will be disabled until the new window is closed.

    Hope this helps

    Lloyd Sheen


    Lloyd Sheen

    • Marked as answer by muupp Friday, July 20, 2012 4:46 PM
    Friday, July 20, 2012 4:19 PM

All replies

  • Use Form's Show method instead of ShowDialog

    If this post answers your question, please click Mark As Answer. If this post is helpful please click Mark as Helpful.

    Regards,
    Nair S

    • Marked as answer by muupp Friday, July 20, 2012 4:46 PM
    Friday, July 20, 2012 4:18 PM
  • What you are asking about are modal windows.  Simply create your new window and use the ShowDialog method to show it.  This will ensure that the window that created/called the new window will be disabled until the new window is closed.

    Hope this helps

    Lloyd Sheen


    Lloyd Sheen

    • Marked as answer by muupp Friday, July 20, 2012 4:46 PM
    Friday, July 20, 2012 4:19 PM