I want to display one byte in textbox.
Now I'm using:
Convert.ToString(MyVeryOwnByte, 2);
But when byte is has 0's at begining those 0's are being cut.
Example:
MyVeryOwnByte = 00001110 // Texbox shows -> 1110
MyVeryOwnByte = 01010101 // Texbox shows -> 1010101
MyVeryOwnByte = 00000000 // Texbox shows -> <Empty>
MyVeryOwnByte = 00000001 // Texbox shows -> 1
I want to display all 8 digits.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…