title: How to smartly add a line of code in all the FormCreate events without editing all forms?
body: <p>I need the call an Initialization routine in all the forms of my application, it is an Intraweb application so in fact I will use <code>OnIWAppFormCreate</code> and not <code>OnFormCreate</code>, anyway the problem is the same.</p>
  
  <p>I have 2 techniques in mind:</p>
  
  <ol>
  <li><p>Use Visual Form Inheritance: in this case I create a BaseForm in which I implement the FormCreate event and in inherit all forms from this</p></li>
  <li><p>I add a global procedure and I call it from all forms</p></li>
  </ol>
  
  <p>Both these tecnhiques make me edit each form.</p>
  
  <p>Is there a way to avoid this? </p>
  
  <p>In fact what I need to do is to add the same string to the TIWAppForm.ExtraHeader stringlist property.</p>
  
  <p>This is the code i need to add to each form:</p>
  
  <pre><code>ExtraHeader.Add('&lt;link rel="stylesheet" type="text/css" href="/css/mycustomcss.css"&gt;');
  </code></pre>
  
  <p>Somehow I'd like to know if there is a way to code this only once with a tecnhique I am not aware of.</p>
  
  <p>Thanks.</p>