S
Saurabh
This may be very silly question but I cannot find a way to convert a number
into a string representation which is an 8 digit hex value.
For example I want to convert a number -2147221503 into an 8 digit hex
number. In MFC I would have used the CString class and the format string of
"%08X" would have worked perfectly well. How do i achieve this in C#. I
tried using string ss = s.ToString("%08X"); where s is the number but this
gives me a string as "-%2147221503008X" which is not what I am looking for.
the static String.Format( ) method does not seem to work either.
Any inputs,
TIA,
--Saurabh
into a string representation which is an 8 digit hex value.
For example I want to convert a number -2147221503 into an 8 digit hex
number. In MFC I would have used the CString class and the format string of
"%08X" would have worked perfectly well. How do i achieve this in C#. I
tried using string ss = s.ToString("%08X"); where s is the number but this
gives me a string as "-%2147221503008X" which is not what I am looking for.
the static String.Format( ) method does not seem to work either.
Any inputs,
TIA,
--Saurabh