C
C#17mo ago
Kaiser Jwan

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

Did you find this page helpful?