Toastr.Winforms 1.1.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Toastr.Winforms --version 1.1.1                
NuGet\Install-Package Toastr.Winforms -Version 1.1.1                
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="1.1.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Toastr.Winforms --version 1.1.1                
#r "nuget: Toastr.Winforms, 1.1.1"                
#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=1.1.1

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

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
var toast = new Toast(ToastrPosition.TopRight, duration: 3000);
// 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.");

// You can also customize the toast message
toast.ShowSuccess("Custom success message");

// The toast notification will automatically close after the specified duration.
Product Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 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
6.1.0 232 11/21/2023
6.0.0 148 11/19/2023
1.1.1 131 11/19/2023
1.1.0 132 11/19/2023
1.0.0 143 11/18/2023