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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

How to change border color of Form Control

(0) ShareShare
ReportReport
Posted on by 1,883
Hello,
 
How can I change border color of any Form Control ? I use below approach on run() of the form. But didn't work. Please advice.
CustAccount.colorScheme(FormColorScheme::RGB);CustAccount.border(WinAPI::RGB2int(254,0,0)); 
 
 
 

 
I have the same question (0)
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    301,020 Super User 2025 Season 2 on at
    Hi Faqruddin,
     
    I don't think you can change the border color in Dynamics 365. There are options to change the background and font color as described on Microsoft Learn: Font and background colors for input, table, and grid controls - Finance & Operations | Dynamics 365 | Microsoft Learn
    You can consider this as an alternative solution for your business requiement.
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    Try this in active method of form datasource.
  • Suggested answer
    Waed Ayyad Profile Picture
    9,039 Super User 2025 Season 2 on at
    Hi Faqruddin,
     
    Try to add your code on the init method of the form.
     
    Thanks
    Waed Ayyad
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future
     
  • Faqruddin Profile Picture
    1,883 on at
    Thanks for your responses. I try all init(), active() etc. I think Andre is correct. We cann't change the border color of the Form Control. Please let me know in case if you find solution. I don't have issue in applying font color, background.
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    26,390 Super User 2025 Season 2 on at
    Hello @Faqruddin,
     
    the border method is to get/set the style of the borderline of the control not to set color code !
     
    you can set 0 = Auto, 1 = 3D, 2 = Single line, 3 Flat, 4 = None
     
     
    if you want to set color on control you can use :
    foregroundColor()
    backgroundColor()
     
    best regards
    Mohamed Amine Mahmoudi
     
     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 646 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 529 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans