corelibraries-devexpress-dot-data-dot-utils.md
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
public static class ProcessStartPolicy
Public Module ProcessStartPolicy
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());
}
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.
Object ProcessStartPolicy
See Also