Modal form opening another modal form

  • Thread starter Thread starter David W
  • Start date Start date
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
 
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
 
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.
 
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
 
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.
 
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
 
Back
Top