✅ Can't Reference a Label in Forms

When using Win Forms in Csharp when I make a TimerCallback I can't reference any Form1 objects in it, but outside of TimerCallback I can
6 Replies
Kouhai
Kouhai3y ago
The callback method is static
Kaiser Jwan
Kaiser JwanOP3y ago
What does that mean?
Kouhai
Kouhai3y ago
It means it exists on the type itself and can't access the instance's members
Kaiser Jwan
Kaiser JwanOP3y ago
Oh okay Now it works, thank you
Kouhai
Kouhai3y ago
<:MadoThumbsUp_MM:406514447973351444>
jcotton42
jcotton423y ago
use /close since it's resolved

Did you find this page helpful?