I thought if you saw something like this:

0xffffffff

you could simply replace the 0x with &H in VB.NET and it would be exactly the same thing? I've always believed that and it has always worked for me, up until I tried that example above. If I do this:

vb.net Code:
  1. Dim Something As UInteger = &Hffffffff

I get an error telling me that a UInteger cannot hold that value. However, if I stick 0xffffffff in a hex to decimal converter it equals 4294967295 and if I do this:

vb.net Code:
  1. Dim Something As UInteger = 4294967295

it works fine.

So how come the &H version won't work?