Export (0) Print
Expand All
Expand Minimize

SystemInformation.UserInteractive Property

Gets a value indicating whether the current process is running in user-interactive mode.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

static member UserInteractive : bool with get

Property Value

Type: System.Boolean
true if the current process is running in user-interactive mode; otherwise, false.

When the UserInteractive property is false, do not display any modal dialogs or message boxes, as there is no graphical user interface for the user to interact with.

This property is false only when called from a service process or from a Web application.

NoteNote

This property is supported only on Windows NT 3.51 or later, Windows 2000, Windows XP, and the Windows Server 2003 family.

The following code example lists all properties of the SystemInformation class in a ListBox and displays the current value of the property in a TextBox when a list item selected.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft