C
C#15mo 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
Kouhai15mo ago
The callback method is static
Kaiser Jwan
Kaiser JwanOP15mo ago
What does that mean?
Kouhai
Kouhai15mo ago
It means it exists on the type itself and can't access the instance's members
Kaiser Jwan
Kaiser JwanOP15mo ago
Oh okay Now it works, thank you
Kouhai
Kouhai15mo ago
<:MadoThumbsUp_MM:406514447973351444>
jcotton42
jcotton4215mo ago
use /close since it's resolved
Want results from more Discord servers?
Add your server