In my program at some time there can be a MessageDlg and another one on top
of it that is produced by a timer function. When the user presses a button
on that last one, the first one is not necessary anymore. I have searched
the web but could not find a way to close the first one from within my
program. There are many solutions but they are from people that are using
MFC and the solutions don't seem to work when pasted in BCB.
Does anyone know how to do this in BCB?
Again, all input is highly appreciated!
Thanks in advance.
Yours sincerely,
Rene
> In my program at some time there can be a MessageDlg and another
> one on top of it that is produced by a timer function. When the user
> presses a button on that last one, the first one is not necessary anymore.
> I have searched the web but could not find a way to close the first one
> from within my program.
Use your own modal TForm instead of MessageDlg(). That way, you can call
the form's Close() method whenever you want. Or, at the very least, call
CreateMessageDialog() directly (which is what MessageDlg() does
internally( instead of creating your own TForm.
Gambit
Hello Gambit,
Thank You for Your reply!
Yours sincerely,
Rene