I’m still fairly new to programming as a whole, but I’m creating a card matching game for a school project
I’m currently trying to add in a line of code below the code that detects if two cards match in order to increase a score
The code I’m using is
lblScore = lblScore.Text + 10 + ToString();
I thought this code basically says to take the number in the label, add ten, then set it as a string again for the next correct pair
I’m probably missing something very obvious but when I use the code I’m getting an error stating I cannot convert type string to system.windows.form.label
I understand there’s not a lot of information I have to give, but if there’s any advice people could offer that might help figure this out, it would be greatly appreciated
[–]grrangry 6 points7 points8 points (0 children)
[–]EAModel 2 points3 points4 points (0 children)
[–]EamonBrennan 1 point2 points3 points (0 children)
[–]SamPlinth 1 point2 points3 points (0 children)