int 2 Hex

  • Thread starter Thread starter Pablo Salazar
  • Start date Start date
Hi Pablo,

There are many ways to convert to Hex value.

This should get you started;
// Should be "7B"
String str = 123.ToString("X");

or the int.Parse function
// Should be 291
int num = int.Parse("123", System.Globalization.NumberStyles.HexNumber);

Hope this helps

Marco
 
Back
Top