✅ 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
Kouhai2y ago
The callback method is static
Kaiser Jwan
Kaiser JwanOP2y ago
What does that mean?
Kouhai
Kouhai2y ago
It means it exists on the type itself and can't access the instance's members
Kaiser Jwan
Kaiser JwanOP2y ago
Oh okay Now it works, thank you
Kouhai
Kouhai2y ago
<:MadoThumbsUp_MM:406514447973351444>
jcotton42
jcotton422y ago
use /close since it's resolved

Did you find this page helpful?