开发者

StatusStrip label formats my text backwards

I've been having this problem for a few days. Whenever I update a label in a StatusStrip object it formats my text backwards. I send my label something like

toolStripVoltage.Text = batteryVoltage.ToString("F2") + " V";

and the label will display V 2.82.

and when I send it something like

toolStripVoltage.Text = batteryVoltage.ToString("0.00 V");

it will display the same thing. It seems like no matter how I format the string the "V" goes before the numbers. and! it still puts a space in between the unit and the number. And here's the kicker: when I call this same text to appear in a tooltip of another object like this

toolStripVoltage.ToolTipText = toolStripVoltage.Text;

It displays as 2.82 V. Any ideas on how I can make this work for me?

EDI开发者_如何转开发T:

oh wow. I instantly figured this out somehow...the default RightToLeft property is Yes. I don't know why that would be! but the trick was to set that to No. Very strange for that to be the default setting.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜