NIlesh Lanke
NIlesh Lanke

Reputation: 1243

WinForms background color on Windows 7

I have a .Net application cotaining a form which is displayed as dialog box. This works great on windows XP but when I run this EXE on Windows 7 the form background color changes to black.

Upvotes: 3

Views: 2839

Answers (1)

JMK
JMK

Reputation: 28059

ActiveCaptionText will indeed show up as black in Windows 7, this is standard behaviour. On Windows XP, ActiveCaptionText shows up as white as shown below:

ActiveCaptionText

I think you need to change the BackColor property to Control to get your form to look like how you want it:

Control

Upvotes: 8

Related Questions