Re: Open child form from dialog form
- From: "Armin Zingler" <az.nospam@xxxxxxxxxx>
- Date: Tue, 17 May 2005 10:15:16 +0200
"Simon Abolnar" <Simon.Abolnar@xxxxxxxxx> schrieb
Does the dialog form know the MDI form or is it a multi-purpose form that can be used from different places? That's a question of abstraction. What does the dialog form do? Will it be closed after the child Form has been opened? Which results can it pass back to the caller?
My dialog form is login form. When application start, dialog is open through ShowDialog.
Is the login form the startup object of the project?
If login is successful, I would like to close my dialog form and open other child form of MDI.
This sounds like the MDI form is the startup form.
Which one is true?
I ask to find the best solution.
MDI form is startup form. In Load event I show dialog (login) form.
IMO this is not good design. I guess the login form also has a cancel button and if it's pushed, the program exits, right? But then it's too late because the MDI form is about to be shown. I'd changed it this way:
shared sub main
dim loginform as new loginform
if loginform.showdialog = dialogresult.ok then
application.run(new mdiform)
end ifend sub
Despite, I still don't know why you want to open an MDI child form from the login form. Is the child form always to be displayed at startup or does it depend on any selection within the login form?
Armin
.
- Follow-Ups:
- Re: Open child form from dialog form
- From: Simon Abolnar
- Re: Open child form from dialog form
- References:
- Open child form from dialog form
- From: Simon Abolnar
- Re: Open child form from dialog form
- From: Armin Zingler
- Re: Open child form from dialog form
- From: Simon Abolnar
- Re: Open child form from dialog form
- From: Armin Zingler
- Re: Open child form from dialog form
- From: Simon Abolnar
- Re: Open child form from dialog form
- From: Armin Zingler
- Re: Open child form from dialog form
- From: Simon Abolnar
- Open child form from dialog form
- Prev by Date: Re: AutoScale Doesn't Behave How I Expect/Hope
- Next by Date: Re: makefile
- Previous by thread: Re: Open child form from dialog form
- Next by thread: Re: Open child form from dialog form
- Index(es):