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,881
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)); 
 
 
 

 
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    17,024 Super User 2025 Season 1 on at
    How to change border color of Form Control
    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
     
     
  • Faqruddin Profile Picture
    1,881 on at
    How to change border color of Form Control
    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
    Waed Ayyad Profile Picture
    7,760 Super User 2025 Season 1 on at
    How to change border color of Form Control
    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
     
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,622 Moderator on at
    How to change border color of Form Control
    Try this in active method of form datasource.
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    292,884 Super User 2025 Season 1 on at
    How to change border color of Form Control
    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.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,884 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,748 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans