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.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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:
I think you need to change the BackColor property to
Controlto get your form to look like how you want it: