Share via


Win10 toast notifications in winforms

Question

Thursday, January 11, 2018 12:32 AM

Hi, Can i use brand new win10 toast notifications in windows forms applications ? why if i can not ?

All replies (6)

Thursday, January 11, 2018 6:39 AM ✅Answered | 2 votes

Hi Farhad,

How about use NotifyIcon control in Winform application?

Also please refer to the following documents:

Doing a NotifyIcon program the right way

How to Show NotifyIcon in Windows Forms Application Using C#

toast style popup for my application

Show Windows 10 toast from WinForm application

Send a local toast notification

Regards,

Stanly

Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; Therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].


Thursday, January 11, 2018 1:29 AM

What are toast notifications? I assume you can do the same type of thing in Windows Forms but just a different name. If you can describe what you need to do without using the term "toast" then I am sure I can tell you what they are called in Windows Forms.

Sam Hobbs
SimpleSamples.Info


Thursday, January 11, 2018 4:35 AM | 1 vote

I think that in windows forms closest is a popup window which is started from a windows services.

Some years ago Microsoft has made that impossible as a potential security risk. 

Success Cor


Thursday, January 11, 2018 5:36 AM

Check if this sample is applicable for modern version of Windows:

·         https://code.msdn.microsoft.com/windowsdesktop/Sending-toast-notifications-71e230a2


Thursday, January 11, 2018 6:43 AM | 1 vote

So I guess when we go to the ToastNotification Class there is a sample linked to from the bottom of that page.

Note that in "Build the sample" in the page for the sample above it says to download the code pack but that page does not work for me. In API Code Pack disappeared? Sheng Jiang says to install the winapicp Nuget package and that worked for me.

Sam Hobbs
SimpleSamples.Info


Thursday, January 11, 2018 7:14 AM | 1 vote

I thought that Microsoft is discouraging applications with a UI from using notify icons. Developers are filling up the "tray" with too much clutter, right?

Sam Hobbs
SimpleSamples.Info