How can I send toast notifications with the app closed in Winforms C#? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

How can I send toast notifications with the app closed in Winforms C#?

Good day, I have a windows forms application, it's an alarm application, in the form 1 (main form) there are 2 datetimepickers, and 2 button. The datetimepicker 1, it's linked with button 1, when you press button 1, it should send a notification to you (with the notification control), and the other datetimepicker and button 2, are for the same, just a second alarm. That's all I've tried and all I know, the problem now is that I Can't send the notifications with the app closed, that basically is the application purpose. The only thing that I guess it could be, it's to create another thread or something similar but that works like a normal task, In background, like the ones that you could cancel in the task manager.

28th Jun 2018, 10:10 PM
SebGM2018
SebGM2018 - avatar
3 Answers
+ 3
When a windows form app closes The code stops running
4th Jul 2018, 12:28 AM
Agent
Agent - avatar
+ 3
you need threading in background
5th Jul 2018, 3:24 AM
Laura Alexandri
Laura Alexandri - avatar
7th Jul 2018, 7:26 PM
Ramesh Annadurai
Ramesh Annadurai - avatar