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.


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
Available since 1.1
Return to top