| Visual Basic (Declaration) | |
|---|---|
Public Sub Close() | |
| C# | |
|---|---|
public void Close() | |
| Exception | Description |
|---|---|
| System.InvalidOperationException | The form was closed while a handle was being created. |
| System.ObjectDisposedException | You cannot call this method from the System.Windows.Forms.Form.Activated event when System.Windows.Forms.Form.WindowState is set to System.Windows.Forms.FormWindowState.Maximized. |