windowsforms-devexpress-dot-xtrabars-dot-alerter-dot-alertcontrol-4340a302.md
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.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DXCategory("Events")]
public event AlertFormLoadEventHandler FormLoad
<DXCategory("Events")>
Public Event FormLoad As AlertFormLoadEventHandler
The FormLoad event's data class is DevExpress.XtraBars.Alerter.AlertFormLoadEventArgs.
The event’s parameters allow you to access and customize the currentlly displayed alert window and the window’s buttons.
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);
}
Imports DevExpress.XtraBars.Alerter
Private Sub AlertControl1_FormLoad(ByVal sender As System.Object, ByVal e As AlertFormLoadEventArgs) _
Handles AlertControl1.FormLoad
e.Buttons.PinButton.SetDown(True)
End Sub
See Also