Skip to main content
.NET Framework 4.6.2+

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

ShowViewStrategyBase.ShowMessage(String, InformationType, Int32, InformationPosition) Method

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public void ShowMessage(
    string message,
    InformationType type = InformationType.Success,
    int displayInterval = 3000,
    InformationPosition position = InformationPosition.Bottom
)

#Parameters

Name Type Description
message String

A notification message.

#Optional Parameters

Name Type Default Description
type InformationType Success

An InformationType value that determines the type of the notification.

displayInterval Int32 3000

An integer that specifies the duration of notification display in milliseconds.

position InformationPosition Bottom

An InformationPosition value that determines the position of the notification window in an ASP.NET Web Forms application. In Windows Forms and ASP.NET Core Blazor applications, this parameter is ignored.

#Remarks

Depending on the platform, the ShowMessage method displays text notifications in different ways:

ASP.NET Core Blazor

A custom Alert component.

A Text Notification in XAF ASP.NET Core Blazor Application, DevExpress

Windows Forms

A Toast Notification.

A Text Notification in XAF Windows Forms Application, DevExpress

ASP.NET Web Forms

A dxToast widget displayed at the specified position.

A Text Notification in XAF ASP.NET Web Forms Application, DevExpress

Tip

We recommend that you use the ShowMessage(MessageOptions) method, because it provides more configuration options.

See Also