Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1465
How to change background color when a style is being applied
posted

Hello.

I'm applying a style to a winform that was created in AppStylist.

I have a UltraNumericEditor on the form and it's picking up the style defined in the .isl file.

On entry error I want to set the background color to Red, so I did this:

txtExtraBillingAmount.Appearance.BackColor = System.Drawing.Color.Red
The color didn't change. I had to set UseAppStyling to false also.

Isn't there a better way than to set UseAppStyling to False? I want to keep the font, etc.

Thanks,

Mike