r/visualbasic • • Oct 28 '20

debugging help!!!?: dice roll game (question in comment)

Post image
6 Upvotes

11 comments sorted by

2

u/PlasticJustice Oct 28 '20 edited Oct 28 '20

What do you means by the boxes are hidden? Because depending on how they’re hidden you might need to unhide them, with something like

picDice1.Visible = True

1

u/peeled-oranges Oct 28 '20

it’s supposed to show the pic of the dice and add them up like the total but we cant see the dice, i tried adding that but it didnt work :( how do i unhide

2

u/PlasticJustice Oct 28 '20

Well, how did you hide them?

1

u/peeled-oranges Oct 28 '20

wait i found out! i did “.Image” when it was supposed to be “.BackgroundImage” but hmm the image is zoomed in do u know what i could do to fix that?

2

u/PlasticJustice Oct 28 '20

There would be a property for that in the picturebox property, should be called something like Size Mode, change that (I recommend set it to Stretch

1

u/peeled-oranges Oct 28 '20

yayaya!!!!!! thank u!!!!! it worked :-D

2

u/Thunor_SixHammers Oct 28 '20

Correct me if wrong but dont you chance the picture something like;

Pict1.image = PictureFromFile(imagefilepath)

1

u/peeled-oranges Oct 28 '20

ok i found out my bug! but damn that would’ve been easier. hm do u know how i could format it bc it pops up super zoomed in

3

u/Thunor_SixHammers Oct 28 '20

I think that's something like

Pict1.sizemode = pictureBoxSizeMode.StretchImage

1

u/peeled-oranges Oct 28 '20

thank u!!!! i found the stretch properties!!!!!! it works good now yayaya :-D

1

u/peeled-oranges Oct 28 '20

i mad a modified roll dice app but the picture boxes won’t show up, and i do have the 6 boxes on the bottom but hidden, i just dont know why it doesnt show when i have the cases listed (ie. picDice1.Image = picOneDot.Image)