0

When running the program in Windows Vista, 7 or 8, it'll work just fine, but if I run the program then it'll be tabbed in and look bad. I've tried finding out why it does this, but I can seem to figure out why. All the other labels have the exact same settings.

Windows 7:

Labels in Windows 7

Windows XP:

Labels in Windows XP

As you can see, the Processor name is tabbed in on Windows XP. Is there any reason why it does it or how I can fix it? The only thing I've ever been able to do to overcome this is to have the program detect if it's Windows XP and use cpuLabel.Location = new Point(x, y); to move it manually.

4

1 回答 1

1

显然它没有在 Windows XP 中修剪字符串。我做到了cpuLabel.Text = CPUID.Trim();,在这样做之后它工作得很好。

谢谢@扎克·史密斯

于 2013-07-17T21:30:44.397 回答