Skip to main content

AlertControl.FormLoad Event

Fires after an alert window has been created, and allows you to customize the window and window’s buttons.

Namespace: DevExpress.XtraBars.Alerter

Assembly: DevExpress.XtraBars.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DXCategory("Events")]
public event AlertFormLoadEventHandler FormLoad

Event Data

The FormLoad event's data class is DevExpress.XtraBars.Alerter.AlertFormLoadEventArgs.

Remarks

The event’s parameters allow you to access and customize the currentlly displayed alert window and the window’s buttons.

Example

The following example shows how to pin an alert window when it’s displayed. The AlertControl.FormLoad event is handled to perform window customization. To pin the window, the AlertButton.SetDown method is called for the AlertButtonCollection.PinButton.

using DevExpress.XtraBars.Alerter;

private void alertControl1_FormLoad(object sender, AlertFormLoadEventArgs e) {
    e.Buttons.PinButton.SetDown(true);
}
See Also