Please use System.Windows.Form.Timer instead of the Timer you are referring, because the "Timer" of System.Timers.Timer is used Windows Service and it's based on thread, if you refer this directly, this will cause the problem of causing an error "A thread cannot access a control that isn't created by the thread itself".
Then in the Form_Load, please set the property——Enabled = true
If you think one reply solves your problem, please mark it as An Answer , if you think someone's reply helps you, please mark it as a Proposed Answer
Help by clicking:
Click here to donate your rice to the poor
Click to Donate
Click to feed Dogs & Cats
Found any spamming-senders? Please report at: Spam Report
No comments:
Post a Comment