I put the debug Folder on another computer to test my little project.
But the colors dont matched and everything looked strange.
See the picture here:
Should开发者_C百科 look like this one here:
But acutally looks like this:
I used the .NetFramework 4 and only simple WinForms.
Thank you.
Edit: This is no Windows Theme, I have set this colors explicit. Here is my DesignerCode: http://www.sourcepod.com/nridub00-5445
It sure looks like the user is using a theme (not you). The theme looks like High Contrast White.
Here is some of your code to set the color.
this.BackColor = System.Drawing.SystemColors.ActiveCaptionText;
this.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
You maybe setting the colors but you are setting them to THEIR colors of THEIR theme. Those constants are for the executing machines color settings, not the developers. That is why your labels look blank etc. Try setting one of them to Color.Red instead and I bet it will show up.
精彩评论