AppWinStyle Enum

Definition

Indicates the window style to use for the invoked program when calling the Shell function.

public enum AppWinStyle
Inheritance
AppWinStyle

Fields

Name Value Description
Hide 0

Window is hidden and focus is passed to the hidden window. This member is equivalent to the Visual Basic constant vbHide.

NormalFocus 1

Window has focus and is restored to its original size and position. This member is equivalent to the Visual Basic constant vbNormalFocus.

MinimizedFocus 2

Window is displayed as an icon with focus. This member is equivalent to the Visual Basic constant vbMinimizedFocus.

MaximizedFocus 3

Window is maximized with focus. This member is equivalent to the Visual Basic constant vbMaximizedFocus.

NormalNoFocus 4

Window is restored to its most recent size and position. The currently active window remains active. This member is equivalent to the Visual Basic constant vbNormalNoFocus.

MinimizedNoFocus 6

Window is displayed as an icon. The currently active window remains active. This member is equivalent to the Visual Basic constant vbMinimizedNoFocus.

Remarks

When you issue Shell commands, you can use the following enumeration members in your code in place of the actual values.

The Style argument takes the AppWinStyle enumeration members.

Applies to

Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 1.1, 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, 4.8.1

See also