Hello everyone
Can anyone help me with codes to calculate sum of numbers in the diagonal of a 2 dimensional matrix array. Please help. (a b c d e
f g h i j
j k l m n
o p q r s)

int[,] array = new int[2, 4] { { 1, 2, 3, 4 }, { 1, 2, 3, 4 } };
List<int> list = new List<int>();
for (int i = 0; i < array.GetLength(1); i++)
{
int sum = 0;
for (int j = 0; j < array.GetLength(0); j++)
{
sum += array[j, i];
}
list.Add(sum);
}
//list now has all sums of 2-d array!
//result is: 2,4,6 and 8

INGGRIS
How to connect device scanner with visual basic, its analogy I made button scan in vb and typing button scan in press scanner live and walk .. how? Help ...

I have the following problem.
when i pres buttun printpreview (button 5) the the print preview fires up.
and when i close the print preview without printing and minimize the ...