Dialog inside dialog....

  • Thread starter Thread starter Paul Aspinall
  • Start date Start date
P

Paul Aspinall

Hi
I have a Dialog form which appears when a user selects a specific option
from a menu...... From this form, the user can delete an item, so I prompt
to confirm if the user is sure...

This results in a dialog, showing a dialog...

However, when the user selects from the 2nd dialog, both dialog boxes are
closed. I only want the last one to close, and leave the previous one... ie.
when the user confirms whether to delete or not, I want the previous dialog
box to be left...

I'm sure I can cancel the closure of the initial box under these
circumstances, but would appreciate any input.

Thanks
 
Paul,

The reason for this is that you end up shutting down the message loop,
which results in the whole application shutting down.

Rather, what you need to do is show the dialog modally (so you lead the
user through a series of steps). If not, then you might want to consider a
MDI application.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top