Monday, 18 April 2016

How to Change Background color of Dynamics Ax

 Class Name : SysSetupFormRun

 Override the run method with following code

 public void run()
 {
     ;
     super();
     switch(curext())
     {
            case "USMF":
            this.design().colorScheme(FormColorScheme::RGB);
            this.design().backgroundColor(WinAPI::RGB2int( 204,255,0));  
            break;
            
           case "DAT":
           this.design().colorScheme(FormColorScheme::RGB);
           this.design().backgroundColor(WinAPI::RGB2int (155,255,0));
           break;
      }
   }


// For a Individual Form
  • Design your own form or existing form 
  • Override run Method and following code

     public void run()
    {
        super();
       this.design().colorScheme(FormColorScheme::RGB);
    
       this.design().backgroundColor(WinAPI::RGB2int (155,255,0));
    
    }

//to change the background color of a form by company



No comments:

Post a Comment