c# - Label won't align properly in Windows XP -
when running program in windows vista, 7 or 8, it'll work fine, if run program it'll tabbed in , bad. i've tried finding out why this, can seem figure out why. other labels have exact same settings.
windows 7:
windows xp:
as can see, processor name tabbed in on windows xp. there reason why or how can fix it? thing i've ever been able overcome have program detect if it's windows xp , use cpulabel.location = new point(x, y);
move manually.
apparently wasn't trimming string in windows xp. did cpulabel.text = cpuid.trim();
, after doing worked fine.
thanks @zach smiith
Comments
Post a Comment