Helper method to close a window as if done by the user in order to get the desired Reason code in the window's Unload events.
Namespace: MDIWindowManager
Assembly: MDIWindowManager (MDIWindowManager)
Syntax
| Visual Basic (Declaration) |
|---|
Public Sub UserCloseWindow ( _ window As IWin32Window _ ) |
| C# |
|---|
public void UserCloseWindow ( IWin32Window window ) |
| C++ |
|---|
public: void UserCloseWindow ( IWin32Window^ window ) |
Parameters
- window (System.Windows.Forms.IWin32Window)