using a few threads, i put together this app for making a level and previewing it. The old thread i used to set a picture arry is gone. If you can help me with creating a picutrebox array in this project, it would be greatly aprechiated, thanks,
___
dan
Sure! If it can be done with minimal confusion, if you know a way, that would be great. Or second thoughts, no, because if i want to change individual images later on (during game), i cant code it as easily. Id like to stick with an array of images.
Sure! If it can be done with minimal confusion, if you know a way, that would be great. Or second thoughts, no, because if i want to change individual images later on (during game), i cant code it as easily. Id like to stick with an array of images.
Well using just 1 picture is much easier,
In your Form_Load event add this to MSFlexGrid1 With Block..
VB Code:
.GridLines = flexGridNone
So the Flexgrid Gridlines won't be there, then, MSFlexGrid1.Picture is your whole map picture. If you want to save it to file just..
VB Code:
SavePicture MSFlexGrid1.Picture, "C:\MyMap.bmp"
If you want to add the picture to a Picturebox..
VB Code:
Picture4.Autosize = True
Picture4.Picture = MSFlexGrid1.Picture
Picture4.Visible = True
Well, but that hasn't much sense cause the Flexgrid already looks like that, that was just in case you wanted to add the image to a picturebox
Well if you notice, i have intGrid(0 to 14,0 to 14) can be 1-3 (pic type). For preview i want it to create 255 images, in a array, and depending on the intGrid number, its image will change correctly. (i dont know how to create all those image box's from code)