Possible Duplicate:
How to convert numbers between hexadecimal and decimal in C#?
In C, you can do something like
int x = 255;
printf("x is: %d and in HEX, x is: %x", x, x);
How can I do that in C# or VB.NET? Print the variable's hex equivalent?