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