Toastr.Winforms
1.1.1
There is a newer version of this package available.
See the version list below for details.
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
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
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 | Versions 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.
-
net8.0-windows7.0
- Guna.UI2.WinForms (>= 2.0.4.5)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.