0
How can I enabled and disabled button in c# by time?
Example: If 6:00 Am the button will be enabled and if 6:00 Pm the button will be enabled?
2 Antworten
+ 5
Yes. Use a timer for this.
https://docs.microsoft.com/en-us/dotnet/api/system.timers.timer?view=net-5.0
Winforms or wpf ?
Make sure the timer is not running on the ui-thread.
+ 2
Oh I see that might be my problem thank you.