web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Cannot change the background of Form in D365

(0) ShareShare
ReportReport
Posted on by 5

Hi,

I tried using the code :

this.design().colorScheme(FormColorScheme::RGB);
this.design().backgroundColor(WinAPI::RGB2int(255,0,0));

with no success. Does anyone know why? This works in 2009 and 2012 but not in 365. help
I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,166 Moderator on at

    Moved to D365 Finance forum.

    In D365 you have less control over the form look&feel than in AX2012.

    But please try to use Custom form pattern, that might help you. If not, then it's not possible at all to change the background color.

  • André Arnaud de Calavon Profile Picture
    303,743 Super User 2026 Season 1 on at

    Hi Leona,

    Can you tell the business requirement why you want to change the background? How does it help a business user? A user can choose his own color scheme.

  • AX User 101 Profile Picture
    25 on at

    Hi André,

    They want to display a huge colored dialog box during validation of a field. I guess i’ll use image instead if the background color is not controllable by code. Thanks!

  • Sergei Minozhenko Profile Picture
    23,095 on at

    Hi,

    These APIs are depreciated (docs.microsoft.com/.../deprecated-apis)

    Overview
    Used to control styles or colors.
    Reason for deprecation
    Remove ability for developers to specify the colors via API for consistent visuals.
    Migration notes
    Remove usage of these APIs from your code.

  • André Arnaud de Calavon Profile Picture
    303,743 Super User 2026 Season 1 on at

    Hi AX User 101,

    Are you a colleague from Leona or do you have a similar requirement? You can indeed try an image, but I'm not convinced how a huge colored dialog box will help the user.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 663

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 439 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 337 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans