I found some answers on converting decimal to binary and I made this code and its working fine,
int number = 2;
string binary = Convert.ToString(number, 2); // gives 10 as binary
But what I want is 00010
as five digit no.
And I am not looking to convert into HEX,
How do I get that?