How to make my app notification listed in windows 10 notification list?

Viewed 342

I use below code to show notification in my Winform application. It shown but it dos't listed in notification list.

var notification = new System.Windows.Forms.NotifyIcon()
{
    Visible = true,
    Icon = System.Drawing.SystemIcons.Information,
    BalloonTipText = "Notification ..."
};
notification.ShowBalloonTip(5000);
Thread.Sleep(3000);

How can I do this?

1 Answers

I find out the problem. I disposed notification before it listed.

Related