I working on a program that I roll some dice and want to call a specific picture box by what die is rolled.
the picture boxes are named consistently pbDie1, pbDie2, etc.
What I am trying to figure out is if the die roll is 1 then it should show pbDie1. I am stumped on how to doe this as the die roll is set to int so not sure how to assign the window according to the roll of the die.
Thanks
the picture boxes are named consistently pbDie1, pbDie2, etc.
What I am trying to figure out is if the die roll is 1 then it should show pbDie1. I am stumped on how to doe this as the die roll is set to int so not sure how to assign the window according to the roll of the die.
Thanks