+ 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.
3 odpowiedzi
+ 3
When a windows form app closes
The code stops running
+ 3
you need threading in background
+ 2
You can use scheduled notification. Please visit the following URL’s for more details and samples.
https://blogs.msdn.microsoft.com/jimoneil/2012/08/08/windows-8-notifications-scheduled-notifications/
https://code.msdn.microsoft.com/windowsapps/Scheduled-notifications-da477093