Modal form opening another modal form

D

David W

I have an application that opens a modal form, FormA. This modal form,
FormA may need to open a second modal form, FormB and close/hide itself.
FormB can either close out and return control to the main window, return to
FormA in an error condition, or open a third modal window FormC.

Any suggestions on how to design this situation?


Thanks,
Dave
 
O

Oliver Sturm

Hello David,
Any suggestions on how to design this situation?

Yes, rethink the whole thing. It sounds like a nightmare, both from an
implementation and from a user perspective.


Oliver Sturm
 
M

Matt Lacey

I have an application that opens a modal form, FormA. This modal form,
FormA may need to open a second modal form, FormB and close/hide itself.
FormB can either close out and return control to the main window, return to
FormA in an error condition, or open a third modal window FormC.

Any suggestions on how to design this situation?

Thanks,
Dave

Have each modal form close when wanting to open a new modal form and
have the main form open any additional form. Either set a variable to
indicate what action to take or use modal results.

Not an elegant solution, but it should allow you to achieve what you
want.
As Oliver says, this could get complicated so you should consider
alternatives.
 
O

Oliver Sturm

Hello Matt,
Not an elegant solution, but it should allow you to achieve what you
want.
As Oliver says, this could get complicated so you should consider
alternatives.

Thanks for elaborating on my admittedly short response :)


Oliver Sturm
 
D

David W

Thanks,

I rewrote the forms, so now I am dealing with a single form with multiple
panels that show and hide as needed. Its a little more difficult to deal
with in designer, but it works.
 
O

Oliver Sturm

Hello David,
I rewrote the forms, so now I am dealing with a single form with multiple
panels that show and hide as needed. Its a little more difficult to deal
with in designer, but it works.

Good to hear you took those steps. Probably not a perfect architecture
either, but this sounds quite a lot better than your initial suggestion.


Oliver Sturm
 

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

Top