❔ Windows Form App

If user got 10 points, picturebox should change the image I'm working on a game on Win Form App, a hunting game. Whether the user scored 10 points, a picturebox should change the image dunno how to do ;d
10 Replies
Shinigami
Shinigami2y ago
Need more details op Change as in how? Show a new picture?
Pobiega
Pobiega2y ago
Whenever you increase the score, check if the current amount of points is 10 or above. If so, change the picture
skywallkerr
skywallkerrOP2y ago
show the new pic
Shinigami
Shinigami2y ago
You could create the other pic and by default set it to hide When user hits 10 you can just call show() method
skywallkerr
skywallkerrOP2y ago
or picturebox2.Visible = true; got it
Shinigami
Shinigami2y ago
Right
skywallkerr
skywallkerrOP2y ago
but what if I want only picbox1 to change the image
Shinigami
Shinigami2y ago
Gimme a sec let me check picturebox properties You can change the picture path For example Image = new bitmap(filepath) Picturebox1.image = image You could create another bitmap with the second file and when user get 10 simply change picturebox1.image = image2
skywallkerr
skywallkerrOP2y ago
kk thanks bro
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