Hi,
Since you have a generic programming question about obtaining a uint from four bytes using VB.net, I would recommend asking the question on a programming forum (StackOverflow, etc.).
We primarily use C# for our applications so I have included the code we use for obtaining a uint from four bytes:
internal static uint GetUint(byte byte0, byte byte1, byte byte2, byte byte3)
{
uint result = byte0;
result |= (uint)(((uint)byte1 & 0xFF) << 8);
result |= (uint)(((uint)byte2 & 0xFF) << 16);
result |= (uint)(((uint)byte3 & 0xFF) << 24);
return result;
}
Regards,
Usama