Hex integer format: X2
Module Example Sub Main() Dim value As Integer value = &h2045e Console.WriteLine(value.ToString("X2")) End Sub End Module