C
C#2y ago
Dwmb

❔ Windows Form, Changing Label.Text says Cannot Implicitly Convert type "void" to "String"

Not sure why this is happening. I'll take any help I can get 🙏
6 Replies
Angius
Angius2y ago
Console.Write() writes text to the console It doesn't return anything What are you trying to do there? And what is Score?
Dwmb
DwmbOP2y ago
Basically im using Windows Form and im trying to have the label text change from score: 0 to a higher score
Dwmb
DwmbOP2y ago
a variable meant to track the score (increases by 10 if the user clicks the right button in the windows form)
Angius
Angius2y ago
Label2.Text = Score.ToString() is what you want, then
Dwmb
DwmbOP2y ago
thank u so much!!!!
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server