Array of images VB.NET -
i new vb.net. developing game in user has guess name of image appears in picturebox. user has enter answer in textbox. if right, button appears , changes image of picturebox.
i image of picturebox change when next level button clicked. want make array contain images string answer.
how go changing image next in array after each next level button click?
thanks
to load images array
dim imgpictures(8) image imgpictures(0) = bitmap.fromfile("filename")
to display images.
dim integer = 0
next image
mypicturebox.image = imgpictures(i++)
previous image
mypicturebox.image = imgpictures(i--)
make sure checking maximum , minimum array values, otherwise indexoutofrange exceptions.
Comments
Post a Comment