❔ 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
Need more details op
Change as in how?
Show a new picture?
Whenever you increase the score, check if the current amount of points is 10 or above. If so, change the picture
show the new pic
You could create the other pic and by default set it to hide
When user hits 10 you can just call show() method
or picturebox2.Visible = true;
got it
Right
but what if I want only picbox1 to change the image
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
kk
thanks bro
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.