Professional Documents
Culture Documents
Form.Show(IWin32Window) Method
Namespace: System.Windows.Forms
Assembly: System.Windows.Forms.dll
In this article
Definition
Remarks
Applies to
See also
C# = Copy
Parameters
owner IWin32Window
Any object that implements IWin32Window and represents the top-level window that will
own this form.
Exceptions
InvalidOperationException
The form being shown is already visible.
-or-
The form specified in the owner parameter is the same as the form being shown.
-or-
-or-
https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.form.show?view=net-5.0 1/3
2/19/2021 Form.Show(IWin32Window) Method (System.Windows.Forms) | Microsoft Docs
-or-
-or-
The current process is not running in user interactive mode (for more information, see
UserInteractive).
Remarks
You can use this method to display a non-modal form. When you use this method, the
Owner property of the form is set to owner . The non-modal form can use the Owner
property to get information about the owning form. Calling this method is identical to
setting the Owner property of the non-modal and then calling the Show() method.
Showing the form is equivalent to setting the Visible property to true . After the Show
method is called, the Visible property returns a value of true until the Hide method is
called.
Applies to
Product Versions
.NET 5.0
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8
See also
ShowDialog
Visible
WindowState
ShowInTaskbar
ShowIcon
https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.form.show?view=net-5.0 2/3
2/19/2021 Form.Show(IWin32Window) Method (System.Windows.Forms) | Microsoft Docs
Shown
https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.form.show?view=net-5.0 3/3