Originally Posted by wossname
My esteemed comrade Noteme is right, integers inany .NET language are 32-bit.
VB6 is at fault here really for perpetuating integers as being signed 16 bits rather than signed 32 bits.
You will find that there is very little API example code availabe for .NET languages. (C# does fare a little better than VB.net in this respect, but you should be using c# anyway :D but I'm biased). Roughly speaking if you are going to use Vb6 code to learn from then ... Vb6 long should be replaced with VB.net integer.