Back to Devexpress

AlertControl.Show(Form, String, String, String, Image) Method

windowsforms-devexpress-dot-xtrabars-dot-alerter-dot-alertcontrol-dot-show-x28-system-dot-windows-dot-forms-dot-form-system-dot-string-system-dot-string-system-dot-string-system-dot-drawing-dot-image-x29.md

latest3.1 KB
Original Source

AlertControl.Show(Form, String, String, String, Image) Method

Displays an alert window with the specified text, caption, image and the text displayed when the window’s text region is hot-tracked.

Namespace : DevExpress.XtraBars.Alerter

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public void Show(
    Form owner,
    string caption,
    string text,
    string hotTrackedText,
    Image image
)
vb
Public Sub Show(
    owner As Form,
    caption As String,
    text As String,
    hotTrackedText As String,
    image As Image
)

Parameters

NameTypeDescription
ownerForm

An owner of the window. In a multi-monitor system, if the owner is set to null , the window will be displayed on the main monitor. Otherwise, the window will be displayed on the same monitor as the owner.

| | caption | String |

A string that specifies the window’s caption.

| | text | String |

A string that specifies the window’s text, displayed when the text region is not hovered over.

| | hotTrackedText | String |

A string that specifies the window’s text, displayed when the text region is not hovered over.

| | image | Image |

An image to be displayed within the alert window.

|

Remarks

If the AlertControl.AllowHtmlText property is enabled, you can use HTML tags to format an alert window’s caption and text. See HTML Text Formatting to learn more.

You can handle the AlertControl.BeforeFormShow event to customize the newly created alert window before its appearance on-screen.

See Also

AllowHtmlText

BeforeFormShow

AlertFormList

HTML-inspired Text Formatting

AlertControl Class

AlertControl Members

DevExpress.XtraBars.Alerter Namespace