Question

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.

Was it helpful?

Solution

Apparently it wasn't trimming the string in Windows XP. I did cpuLabel.Text = CPUID.Trim(); and after doing that it worked just fine.

Thanks @Zach Smiith

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top