Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

How to change border color of Form Control

(0) ShareShare
ReportReport
Posted on by 1,871
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 10,169 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,871 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 6,493 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,587 Super User 2024 Season 1 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... 291,642 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.

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,642 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,371 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans