When I add [5] instead of [], I get the error at this line:
error C3616: '5': a size cannot be specified in a __gc array declarationCode:PictureBox* picBlocks[];
and
at this line:
error C3262: invalid array indexing: 1 dimension(s) specified for 5-dimensional 'System::Windows::Forms::PictureBox __gc * __gc[,,,,]'Code:picBlocks[i] = new PictureBox();