Back to Devexpress

ProcessStartPolicy Class

corelibraries-devexpress-dot-data-dot-utils.md

latest2.7 KB
Original Source

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.v25.2.dll

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

Declaration

csharp
public static class ProcessStartPolicy
vb
Public Module 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.

csharp
static void Main() {  
    DevExpress.Data.Utils.ProcessStartPolicy.SuppressAll();
    // ...
    Application.Run(new Form1());
}
vb
Shared Sub Main()  
    DevExpress.Data.Utils.ProcessStartPolicy.SuppressAll()  
    ' ...
    Application.Run(New Form1)  
End Sub

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

ProcessStartPolicy Members

DevExpress.Data.Utils Namespace