Show / Hide Table of Contents

KryptonMessageBoxExtended

Overview

KryptonMessageBoxExtended is a static API in Krypton.Toolkit.Utilities that extends KryptonMessageBox with additional buttons, icons, timeouts, countdown buttons, rich footer content, custom checkbox text, and layout options.

Namespace: Krypton.Toolkit.Utilities
Assembly: Krypton.Toolkit.Utilities
Type: Static class (ToolboxItem(false))

Comparison with KryptonMessageBox

Feature KryptonMessageBox KryptonMessageBoxExtended
Standard buttons/icons Yes Yes (+ extended sets)
Timeout auto-close Limited useTimeOut, timeOut, timerResult
Countdown on a button No countdownButton, countdownButtonSeconds
Footer area Basic Text, link, or custom footer types
Message alignment Default messageTextAlignment, text box alignment
Extra buttons No ExtendedMessageBoxButtons

Basic usage

using Krypton.Toolkit.Utilities;

DialogResult result = KryptonMessageBoxExtended.Show(
    "Save changes before closing?",
    "Confirm",
    ExtendedMessageBoxButtons.YesNoCancel,
    ExtendedKryptonMessageBoxIcon.Question);

Timeout example

DialogResult result = KryptonMessageBoxExtended.Show(
    messageText: "Session expires soon.",
    caption: "Warning",
    buttons: ExtendedMessageBoxButtons.OK,
    icon: ExtendedKryptonMessageBoxIcon.Warning,
    useTimeOut: true,
    timeOut: 30,
    timerResult: DialogResult.OK);

Countdown button

Use with [KryptonCountdownButton](../../Toolkit Utilities/KryptonCountdownButton.md) semantics on dialog buttons:

KryptonMessageBoxExtended.Show(
    "Delete this item?",
    "Confirm",
    ExtendedMessageBoxButtons.YesNo,
    ExtendedKryptonMessageBoxIcon.Warning,
    countdownButton: ExtendedKryptonMessageBoxCountdownButton.Button1,
    countdownButtonSeconds: 10,
    countdownButtonDialogResult: DialogResult.Yes);

Additional overloads support owner window, custom icons, checkbox text, footer links, and ShowCore parameters for advanced scenarios — see source KryptonMessageBoxExtended.cs.

See also

  • KryptonMessageBox
  • KryptonMessageBox API Documentation
  • [Krypton Toolkit Utilities index](../../Toolkit Utilities/KryptonToolkitUtilitiesIndex.md)
Back to top Krypton Component Suite BSD 3-Clause License © Component Factory Pty Ltd, 2006 - 2016, All rights reserved. Modifications by Peter Wagner (aka PWagner1), Simon Coghlan (aka Smurf-IV), Giduac, Ahmed Abdelhameed, tobitege, KamaniAR, Lesandro Gotardo (aka lesandrog), Jorge A. Avilés (aka mcpbcs) et al. 2017 - 2025. All rights reserved. https://github.com/Krypton-Suite