Skip to main content

AlertControl.AlertFormList Property

Stores active classic alert forms (designed without HTML templates). Note that HTML alerts are not Forms, and are stored in the separate HtmlPopupList collection.

Namespace: DevExpress.XtraBars.Alerter

Assembly: DevExpress.XtraBars.v24.2.dll

Declaration

[Browsable(false)]
public List<AlertForm> AlertFormList { get; }

Property Value

Type Description
List<DevExpress.XtraBars.Alerter.AlertForm>

A list of active alert windows.

Remarks

This list changes at runtime when alert windows are opened and closed.

The following example demonstrates how to show and close alert windows:

using DevExpress.XtraBars.Alerter;

// Displays an alert window.
alertControl1.Show(this, "Alert", "The alert description.");

// Closes all active alert windows.
foreach(AlertForm alert in alertControl1.AlertFormList)
    alert.Close();

// Closes the specified alert window.
AlertForm alertWindow = alertControl1.AlertFormList[0];
if(alertWindow != null)
    alertWindow.Close();
See Also