Gets a value indicating whether the current process is running in user-interactive mode.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
When the 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.