We needed to do some processing inside a form, and in some cases it is not necessary to show the user the form, so we want to just close it. You cannot call Close during formshow, so we had it set up with a timer and a boolean.
Just looked on google to see if there was a better answer and found this:
postmessage(self.Handle, WM_CLOSE, 0, 0);
which can be called during formshow.
Just looked on google to see if there was a better answer and found this:
postmessage(self.Handle, WM_CLOSE, 0, 0);
which can be called during formshow.