Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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