Hallo,
ich habe eine Textbox in der ein Bytewert als 2-stellige Hexadezimalzahl angezeigt werden soll. Folgender Code gibt aber nur 1 anstatt 01 aus.
Es sollte wie beim Stringbuilder funktionieren:
Halt nur mit String.
Hat jemand nen Tip?
Dannke schon mal.
Gruß i865
ich habe eine Textbox in der ein Bytewert als 2-stellige Hexadezimalzahl angezeigt werden soll. Folgender Code gibt aber nur 1 anstatt 01 aus.
Code:
byte bValue = 1; textbox_Byte.Text = bValue.ToString("X");
Code:
sbText.AppendFormat("{0:X}", bValue);
Hat jemand nen Tip?
Dannke schon mal.
Gruß i865
Comment