I have created a small program that sets dates in the registry and then downsizes into the systray / notification area. My program looks at those dates in the registry and if one date is today, popup a notification telling the user. But what I have noticed is my program only works for the first few minutes as the date never gets updated in the app. I can double click the app and it shows but has the today's date as the date I sent it to the systray. I used .refresh() on labels and stuff but not working. How do I get the systray icon to get current date or keep refreshing itself? Once the program gets sent to the systray it starts a timer loop, mainly checking for matching dates. but as I said it appears to keep matching the date when it had when it went to the systray.

How do I get the program to keep refreshing the date when sent down to systray?