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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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:
- Download the Toastr.Winforms package from NuGet.
- 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 | Versions 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.
Sound effects added