<guy> schrieb:
> It works without the L as well, but I agree it is
> better to specify the L for clarity. The problem was
> (I believe) that when we use new for that type we
> must supply parameters because there is no definition
> for new() only for new(param) etc.
Huh! Take a look at your code again... You are already calling the
parameterized constructor. The problem is definitely that VB.NET treats the
hex number as 'Int32' and treats it as a negative number.

Signature
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/
> Huh! Take a look at your code again... You are already calling the
> parameterized constructor. The problem is definitely that VB.NET treats the
> hex number as 'Int32' and treats it as a negative number.
Sorry, you are absolutely right. I'm afraid my program has other problems
as well, hence I did not see why the L *is* needed. Thanks, and apologies
and thanks to the first replyer too.
This may seem strange, but on dot net cf it *will* work
without the long cast.