ProcessStartPolicy.Started Event
Fires after a process has started.
Namespace: DevExpress.Data.Utils
Assembly: DevExpress.Data.Desktop.v24.1.dll
NuGet Packages: DevExpress.Data.Desktop, DevExpress.ExpressApp.Win.Design
Declaration
Event Data
The Started event's data class is EventArgs.
Remarks
Handle Starting and Started
events to perform custom actions when a DevExpress UI control starts a process.
static void Main() {
ProcessStartPolicy.Starting += ProcessStartPolicy_Starting;
ProcessStartPolicy.Started += ProcessStartPolicy_Started;
// ...
}
private static void ProcessStartPolicy_Starting(object sender, System.ComponentModel.CancelEventArgs e) {
ProcessStartInfo psi = sender as ProcessStartInfo;
e.Cancel = !psi.FileName.Contains("www.devexpress.com");
}
private static void ProcessStartPolicy_Started(object sender, EventArgs e) {
Process process = sender as Process;
// ...
// Log.WriteMessage("process started");
}
Read the following topic for more information: Suppress New Processes Initiated by .NET Controls.
See Also