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

How to change border color of Form Control

(0) ShareShare
ReportReport
Posted on by 1,909
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
    303,128 Super User 2026 Season 1 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,061 Super User 2026 Season 1 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,909 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,779 Super User 2026 Season 1 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

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

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 378

#3
Diego Mancassola Profile Picture

Diego Mancassola 255

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans