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

XtraBaseArgs.Showing Event

Provides access to a Form embedded into a shown object.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public event EventHandler<XtraMessageShowingArgs> Showing

#Event Data

The Showing event's data class is DevExpress.XtraEditors.XtraMessageShowingArgs.

#Remarks

The code below illustrates how to change the background color for a form embedded into an XtraInputBox.

XtraInputBoxArgs xia = new XtraInputBoxArgs();
(xia as XtraBaseArgs).Buttons = new DialogResult[] {
    DialogResult.OK, DialogResult.Cancel, DialogResult.Retry };
xia.Caption = "User not found. Enter a valid user name.";
xia.Showing += Xia_Showing;
XtraInputBox.Show(xia);

private void Xia_Showing(object sender, XtraMessageShowingArgs e)
{
    e.MessageBoxForm.BackColor = DevExpress.LookAndFeel.DXSkinColors.FillColors.Warning;
}
See Also