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

NuGet Package: DevExpress.Win.Navigation

#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