title: How do do things during Delphi form startup
body: <p>I have a form one which I want to show a file open dialog box before the full form opens.</p>
  
  <p>I already found that I can't do UI related stuff in FormShow, but it seems that I can in FormActivate (which I protect from being called a second time...)</p>
  
  <p>However, if the user cancels out of the file open dialog, I want to close the form without proceeding.</p>
  
  <p>But, a form close in the activate event handler generates an error that I can't change the visibility of the form.</p>
  
  <p>So how does one do some UI related operation during form start up and then perhaps abort the form (or am I trying to stuff a function into the form that should be in another form?)</p>
  
  <p>TIA</p>