开发者

Optical errors in my published WinForm Project

开发者 https://www.devze.com 2023-04-01 18:38 出处:网络
I put the debug Folder on another computer to test my little project. But the colors dont matched and everything looked strange.

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:

Optical errors in my published WinForm Project

But acutally looks like this:

Optical errors in my published WinForm Project

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.

0

精彩评论

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