Windows Themes and Appearance settings are causing Forms appearance to behave abnormally.

hi I have written a form in C#,

The problem we are facing is that whenever the XP theme is set to Silver etc.. it changes the appearance of the form. I would like the form to not be affected by theme settings. Is there an easy way to do this?

Thanks.

Dwight

[282 byte] By [DwightKulkarni] at [2007-12-28]
# 1

Hi,

you will have to set the forms backcolor and other properties to explicit colour vales, rather than the Control colour or ControlText colours they are set to by default.

Mark

MarkDawson at 2007-9-4 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 2

By default all controls are configured to use Windows' Color Scheme so whenever you change Theme, it changes Color Sheme too and ultimately your application's color is also changed.

See Form's Property in Property Grid and Set BackColor Property to your choice by default it is set to Control.

You need to repeat this procedure for every Form in your application.

I hope this will help.

Best Regards,

Rizwan aka RizwanSharp

RizwanSharp at 2007-9-4 > top of Msdn Tech,Windows Forms,Windows Forms General...