Addstring in ListBox
-
Hi all, Wanted to know if it is possible to both pad a hex numbers with leading 0's and also format the width of the message. I have a string and i just concat a hex number to it. I just want to space out the numbers so that they will line up with the next string added, so that it has the look of a table. Right now i am padding the hex number like this:
testStr.Format("%03X" , myString); Str += testStr; testStr.Format("%03X" , myString2); Str += testStr; Listbox.AddString(Str);
I know if i take away the 0, then it will set the width, but i need to do both. CAN THIS BE DONE? thanks in advance. Jimmy Just cause I am 15, doesn't mean I'm dumb! (I'll really be 4 on Feb. 29...the year 2004)
-
Hi all, Wanted to know if it is possible to both pad a hex numbers with leading 0's and also format the width of the message. I have a string and i just concat a hex number to it. I just want to space out the numbers so that they will line up with the next string added, so that it has the look of a table. Right now i am padding the hex number like this:
testStr.Format("%03X" , myString); Str += testStr; testStr.Format("%03X" , myString2); Str += testStr; Listbox.AddString(Str);
I know if i take away the 0, then it will set the width, but i need to do both. CAN THIS BE DONE? thanks in advance. Jimmy Just cause I am 15, doesn't mean I'm dumb! (I'll really be 4 on Feb. 29...the year 2004)