How to create a Notification Popup window in C#
In this tutorial we will see how to create a notification Popup window using Tulpep/Notification Popup Window Nuget. which is a notification window that appears on the lower right part of the screen for .NET.
So let's create a Windows Forms application and add a button, then right click on project and select Manage NuGet Packages...
Type notification window in Search then select Notification Popup Window and click install
After that, add this directive in the code:
And in ShowButton add this code:
Now run the application, this is the result:
Watch this video for more explanation:
Features:
- Scroll and/or fade window in and out
- Configure the animation speed and the time the window is displayed
- Display a custom icon
- Set title and content text, font, size, and color
- Set all paddings around icon, title and content
- Sptionally display a close button
- Optionally display a button which opens a context menu
So let's create a Windows Forms application and add a button, then right click on project and select Manage NuGet Packages...
Type notification window in Search then select Notification Popup Window and click install
After that, add this directive in the code:
using Tulpep.NotificationWindow;
And in ShowButton add this code:
private void ShowButton_Click(object sender, EventArgs e)
{
PopupNotifier popup = new PopupNotifier();
popup.TitleText = "Notification";
popup.ContentText = "Notification window in C#";
popup.Popup();
}
Now run the application, this is the result:
Watch this video for more explanation:
How to create a Notification Popup window in C#
Reviewed by Bloggeur DZ
on
10:24
Rating:
how we can use it in framework 3.5 ?
RépondreSupprimer