This may be irrelevant by now but ...
Here is what is looks like in vs 2005 c++. Unfortunately I am not a VB guy but I am going to try to make it in vb.
const int DimensionSize = 2;
const int ArraySize = 3;
array <int, DimensionSize> ^ Matrix1 =
gcnew array<int,DimensionSize>(ArraySize,ArraySize);
array <int, DimensionSize> ^ Matrix2 =
gcnew array<int,DimensionSize>(ArraySize,ArraySize);
for(int i = 0 ; i < ArraySize; i++)
{
for(int j = 0 ; j < ArraySize ; j ++)
{
TextBox ^ txt =
(TextBox^)Controls->Find(
String::Format( "txtM1_{0}{1}",i,j),true)[0];
Matrix1[i,j] = int::Parse(txt->Text->Trim());
TextBox ^ txt2 =
(TextBox^)Controls->Find(
String::Format( "txtM2_{0}{1}",i,j),true)[0];
Matrix2[i,j] = int::Parse(txt2->Text->Trim());
}
}
|