title: Edit FormBuildControl when opening AX form
body: <p>I have tried the following: <a href="https://stackoverflow.com/questions/23787228/ax2009-loop-through-all-the-controls-in-the-form-on-init">AX2009 Loop through all the controls in the form on init</a>, and have been able to loop through all the form controls in the form when opening it.</p>
  
  <p>But, for some reason, when i try to edit a form control, it is not working. I have a switch statement like this:</p>
  
  <pre><code>switch ( control.handle() )
  {
      case classnum(FormBuildButtonControl):
          formBuildButtonControl = control;
  
          formBuildButtonControl.enabled(false);
      break;
   }
  </code></pre>
  
  <p>When the form then opens, the button control is still enabled. I have tried calling the loop method from before and after the super in the run method and from before and after the super method in the init and it did not work in any of them. Although, it does not work when called before the super in the init method because I have to use some properties from initalized form controls.</p>