How do do things during Delphi form startup
问题 I have a form one which I want to show a file open dialog box before the full form opens. 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...) However, if the user cancels out of the file open dialog, I want to close the form without proceeding. But, a form close in the activate event handler generates an error that I can't change the visibility of the form. So how does one do some UI related