All right, thanks. I was afraid of this. What would my options be if I hypothetically had a simple array?There would be options if you were creating a simple array but, for a 2D array, you're going to have to use nested For loops.
And after thinking about it, a way I suppose a way I could solve this dilemma is to create another color class (Color2) with the default value of black, and creating an array of Color2.
VB Code:
' A color with the default value of black. Class Color2 Private R As Int32 = 0 Private G As Int32 = 0 Private B As Int32 = 0 ReadOnly Property Color() As Color Get Return Color.FromArgb(R, G, B) End Get End Property End Class
Thanks,
~Nic




Reply With Quote
