Toastr.Winforms 6.1.0

dotnet add package Toastr.Winforms --version 6.1.0                
NuGet\Install-Package Toastr.Winforms -Version 6.1.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="Toastr.Winforms" Version="6.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Toastr.Winforms --version 6.1.0                
#r "nuget: Toastr.Winforms, 6.1.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 Toastr.Winforms as a Cake Addin
#addin nuget:?package=Toastr.Winforms&version=6.1.0

// Install Toastr.Winforms as a Cake Tool
#tool nuget:?package=Toastr.Winforms&version=6.1.0                

Toastr.Winforms

Toastr.Winforms is a lightweight and customizable toast notification library for Windows Forms applications. It provides an easy way to display success, error, and warning messages in a visually appealing and non-intrusive manner.

Features

  • Toast Positioning: Choose from predefined positions (TopLeft, TopRight, TopCenter, BottomLeft, BottomRight, BottomCenter) for displaying toast notifications.
  • Customizable Duration: Set a custom duration for how long the toast notification should be displayed.
  • Success, Error, and Warning Notifications: Easily show success, error, and warning messages with built-in icons and colors.

Installation

To use Toastr.Winforms in your Windows Forms project, follow these steps:

  1. Download the Toastr.Winforms package from NuGet.
  2. Install the package using the NuGet Package Manager Console or the Package Manager UI.

Usage

using Toastr.Winforms;

// Create a new toast notification
// Note: In version 6.1.0, 'enableSoundEffect' has been added to the constructor parameters.
var toast = new Toast(ToastrPosition.TopRight, duration: 3000, enableSoundEffect: true);
// Or you can use defaults: var toast = new Toast();

// Show a success notification
toast.ShowSuccess("Operation successful!");

// Show an error notification
toast.ShowError("An error occurred.");

// Show a warning notification
toast.ShowWarning("This is a warning message.");

// The toast notification will automatically close after the specified duration.
Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0-windows7.0

    • No dependencies.

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
6.1.0 225 11/21/2023
6.0.0 143 11/19/2023
1.1.1 127 11/19/2023
1.1.0 127 11/19/2023
1.0.0 138 11/18/2023

Sound effects added