Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / February 2007

Tip: Looking for answers? Try searching our database.

Modal form opening another modal form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David W - 14 Feb 2007 17:39 GMT
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
Oliver Sturm - 14 Feb 2007 20:33 GMT
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
Signature

http://www.sturmnet.org/blog

Matt Lacey - 15 Feb 2007 12:34 GMT
> 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.
[quoted text clipped - 5 lines]
> 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.
Oliver Sturm - 15 Feb 2007 20:15 GMT
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
Signature

http://www.sturmnet.org/blog

David W - 16 Feb 2007 18:49 GMT
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.

>> 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.
[quoted text clipped - 15 lines]
> As Oliver says, this could get complicated so you should consider
> alternatives.
Oliver Sturm - 16 Feb 2007 20:01 GMT
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
Signature

http://www.sturmnet.org/blog


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.