What is the best way to autostart an action after OnShow event?
问题 I have a small application that most of the time have an action behind a Start-button that should be triggered from the commandline parameter /AUTORUN. If that parameter is missing the user could also press it manually. My question is where should I place this check for commandline so when it is given the GUI is still updated. The current solution is this, but the GUI is not updated until the action is finished. procedure TfrmMainForm.FormShow(Sender: TObject); begin if FindCmdLineSwitch(