MessageBoxEx 1.0.0

dotnet add package MessageBoxEx --version 1.0.0                
NuGet\Install-Package MessageBoxEx -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MessageBoxEx" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MessageBoxEx --version 1.0.0                
#r "nuget: MessageBoxEx, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MessageBoxEx as a Cake Addin
#addin nuget:?package=MessageBoxEx&version=1.0.0

// Install MessageBoxEx as a Cake Tool
#tool nuget:?package=MessageBoxEx&version=1.0.0                

DataTools.MessageBoxEx

Customizable replacement for the system MessageBox class

NEW! - Added .NET 5.0 WinForms projects. You can now use these projects without the .NET Framework.

DataTools.MessageBoxEx is a highly customizable replacement for the system MessageBox class for both WPF and WinForms applications.

It is intended to look and behave as closely as possible to the native MessageBox.

(The message box will render in the Visual Style of the calling application.)

Go to the Wiki for complete API documentation.
DataTools.MessageBoxEx.MessageBoxEx Class
DataTools.MessageBoxEx.MessageBoxExConfig Class
Browse Form1.cs in the TestApp for usage examples.

Some features include:

  • Custom Buttons

    You can define completely custom buttons that return either a MessageBoxExResult or a custom result of any type.

    alternate text is missing from this package README image

  • Custom Icons

    The main icon and buttons icons are completely customizable:

    alternate text is missing from this package README image

  • Control Over Sounds

    When the message box is shown it can:

    • Play the default system sound for a specific system icon.
    • Play a different system sound.
    • Mute sounds, altogether.
  • Standard System Dialog Boxes

    • OK button
    • OK and Cancel buttons
    • Yes and No buttons
    • Yes, No, and Cancel buttons
    • Yes, No, and Yes To All buttons
    • Abort, Retry, and Ignore buttons

    alternate text is missing from this package README image

  • Check Boxes

    A checkbox option can be placed immediately to the left of the buttons on the message box.

    • (Note, a checkbox and a hyperlink cannot appear together, at the same time)

    alternate text is missing from this package README image

  • Hyper Links

    A hyperlink that can execute any location that is valid in the Windows shell (applications, URLs, special folders, etc.)

    • Note: a checkbox and a hyperlink cannot appear together, at the same time.
    • In keyboard navigation, the hyperlink on the message box can be activated by pressing Ctrl + Enter

    alternate text is missing from this package README image

  • Drop-Down Menus

    Custom buttons can have a drop-down menu with arrow button attached.

    • In keyboard navigation, the drop-down menu can be activated for the button with focus by pressing Ctrl + Down Arrow

    alternate text is missing from this package README image

  • Automatic Sizing

    Gracefully and accurately sizes the dialog box to fit even very large content.

    • This feature is limited by screen size.

    alternate text is missing from this package README image

  • Resource-based Internationalization

    Language resources from your own project can be referenced by MessageBoxEx to render standard dialog types by using the ResourceTextConfig static property.

    alternate text is missing from this package README image

    • See the example project for an example. Note that the example project contains two resources, AppResources.resx and AppResources.fr.resx. The fr in the second file is the two letter ISO language code for French. Applications using resource-based internationalization will automatically pick the best set of resources to use based on the user's current system language and culture settings, but this behavior can be overridden. Browse ResourceTextConfig.cs to see what's involved.
  • If you prefer the old-fashioned 3D look

    The message box will render in the Visual Style of the calling application.

    You can override the default visual style of your application by launching the message box in a new process using ShowInNewProcess.

    alternate text is missing from this package README image

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 572 8/22/2022