在Windows应用程序c#中填充大小相同的项目填充显示不同

时间:2017-06-27 22:29:10

标签: c#

listBox1.Items.Add(item.PadRight(60) + "Quantity=" +  txtteesqty.Text.PadRight(60) + "RS=" + tea_total);

listBox1.Items.Add(sb.ToString().PadRight(60) + "Quantity=" + txtomelteqty.Text.PadRight(60) + "RS=" + omelte_total);

' ' sb.tostring()' 字符长度相同,即' 23'但是在列表框中,两个listitem都不在相同的位置

我真的不知道为什么它不相同的填充帮助我!

0 个答案:

没有答案