Skip to main content
All docs
V23.2

ProcessStartPolicy Class

Allows you to control processes initiated by DevExpress UI controls in response to user actions.

Namespace: DevExpress.Data.Utils

Assembly: DevExpress.Data.Desktop.v23.2.dll

NuGet Packages: DevExpress.Data.Desktop, DevExpress.ExpressApp.Win.Design

Declaration

public static class ProcessStartPolicy

Remarks

DevExpress UI controls can initiate new processes in response to user actions. For example, DevExpress RichEdit or HyperlinkEdit controls can open a system’s default browser when a user clicks a hyperlink. Use ProcessStartPolicy APIs to apply a policy that manages processes.

Call one of the following methods at application startup to apply a policy:

Note

If none of these methods are called, DevExpress UI controls allow all processes to start. All exceptions that indicate failed processes are suppressed.

static void Main() {  
    DevExpress.Data.Utils.ProcessStartPolicy.SuppressAll();
    // ...
    Application.Run(new Form1());
}

You can also handle Starting and Started events to perform custom actions when a DevExpress UI control starts a process.

Read the following topic for more information: Suppress New Processes Initiated by .NET Controls.

Inheritance

Object
ProcessStartPolicy
See Also