"Carl Mercier" <carl@carl_nospam_please-mercier.com> schrieb:
I'm trying to create a multi-dimensional (2) array of CheckBox in VB.NET.
Can't figure out the syntax... can anyone help?
[...]
Private _columns(,) As CheckBox
...
_columns(DaysCount, PeriodCount) = New CheckBox()
You'll have to either specify the number of elements in the array in the
variable declaration or in a 'ReDim'. Then you can populate the array
elements with instances of 'CheckBox' by iterating over the array elements
using nested loops.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>