Help Arrays II

bill_howes
02-27-2001, 08:20 AM
Thanks for the reply. I now attach my code.


I am currently programming a version of Tetris in VB. THe problem is to do with arrays. i have made the tetris "grid" as an array. I have programmed the code to cahnge the colour of the squares to show the blocks. HOWEVER it wont. there are no compiling errors, it just refuses to change the colour of the grid squares. HELP !

bill_howes
02-27-2001, 08:20 AM
Thanks for the reply. I now attach my code.


I am currently programming a version of Tetris in VB. THe problem is to do with arrays. i have made the tetris "grid" as an array. I have programmed the code to cahnge the colour of the squares to show the blocks. HOWEVER it wont. there are no compiling errors, it just refuses to change the colour of the grid squares. HELP !

Freeloader
02-28-2001, 02:46 AM
Have you defined the rows and columns in your grid.
Eg.

Grid1.Row = X
Grid1.Col = Y
Grid1.BackColor = RGB(0, 0, 0)

Note, this will only work for a grid control like MS Flex Grid, not if you've arranged an array of picture boxes or image boxes.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum