[Expand]General Information
[Collapse]WinForms Controls
  .NET Core Support
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Collapse]Messages, Notifications, and Dialogs
    Input Box
    Flyout Dialog
    Flyout Panel
   [Collapse]Alert Windows
     Alert Windows Overview
     How to: Make an Alert Window Opaque
     How to: Add Custom Buttons to Alert Windows
     How to: Respond to Clicking on Alert Windows
    Toast Notification Manager
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Gantt Control
  [Expand]Chart Control
  [Expand]Map Control
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Sunburst Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Alert Windows Overview

Much like Microsoft Outlook's email notification windows, you can use DevExpress Alert Windows to display important app-related notifications for end-users.

By default, DevExpress Alert Windows appear in the bottom-right corner of the screen and automatically disappear after a short delay. You can modify both the default position and display delay of the window as needed.

To show alert windows, add the AlertControl component to the form, and call the AlertControl.Show method to create and display alert windows. The AlertControl component provides multiple options to control the appearance and behavior of alert windows, and events to respond to end-user actions (such as clicking an alert window's text or button).

Expanded Alert Window Contents

Contents for an alert window are provided when you create the window with the AlertControl.Show method. The method's parameters allow you to specify the window's caption, image and text.

An alert window's text functions as a hyperlink. When the text is hot-tracked, it's underlined, and an end-user is able to click this text. To process clicks on the text, handle the AlertControl.AlertClick event.

Captions and text in alert windows can be formatted using HTML tags. To enable HTML formatting, set the AlertControl.AllowHtmlText property to true.

Expanded Alert Window Location

You can specify the location of alert windows using the AlertControl.FormLocation property. With this property, you can specify the corner of the screen where alert windows are displayed.

By handling the AlertControl.BeforeFormShow event, you can specify the screen coordinates where an alert window will be displayed.

Expanded Alert Window Delay

Alert windows are displayed on-screen for a short time, specified by the AlertControl.AutoFormDelay property. If an end-user hasn't been hovering over a window during that short time, the alert window is automatically destroyed.

To prevent an alert window from being destroyed after a delay, an end-user can click the window's Pin button. See below.

Expanded Alert Window Buttons

Alert windows support the predefined Pin, Close and Dropdown buttons, as well as custom buttons.

Clicking the Close button immediately closes the window. Clicking the Pin button, forces the window to stay on-screen. The "pinned" window will not be closed after the time specified by the AlertControl.AutoFormDelay property has elapsed. The visibility of these buttons is specified by the AlertControl.ShowCloseButton and AlertControl.ShowPinButton properties.

You can associate a PopupMenu with an alert window using the AlertControl.PopupMenu property. If you do this, an alert window will display a Dropdown button. Clicking it will invoke this menu.

Custom buttons allow you to provide additional functionality for alert windows. To add these buttons, use the AlertControl.Buttons collection. To handle clicks on these buttons, handle the AlertControl.ButtonClick or AlertControl.ButtonDownChanged event.

Expanded See Also

Is this topic helpful?​​​​​​​