Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / How to change border c...
Finance forum
Suggested answer

How to change border color of Form Control

Posted on by 1,867
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
    Mohamed Amine Mahmoudi 8,945 Super User 2024 Season 2 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
    Faqruddin 1,867 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
    Waed Ayyad 5,131 Super User 2024 Season 2 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
    Bharani Preetham Pe... 3,538 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
    André Arnaud de Cal... 290,246 Super User 2024 Season 2 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.

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,246 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,041 Super User 2024 Season 2

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans