S
Simon Abolnar
I would like to know how to open child form from dialog form.
Thanks for help!
Simon
Thanks for help!
Simon
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Simon Abolnar said:I would like to know how to open child form from dialog form.
Thanks for help!
Simon
Simon Abolnar said:Child form is meant that is child of MDI form.
Simon Abolnar said:My dialog form is login form. When application start,
dialog is open through ShowDialog.
If login is successful, I would like to close my dialog form and open
other child form of MDI.
Simon Abolnar said:MDI form is startup form.
In Load event I show dialog (login) form.
Simon Abolnar said:1. Thank you very much for your suggestion.
I tried to aplied your solution.
It works OK, except I can't close login dialog.
When I press OK button, application (MDI form) run, with dialog form
still present.
I don't know where to close dialog form. in sub main or in btnOK
event and how?
I changed your solution to:
Shared Sub main()
Dim loginform As New frmPrijava
loginform.btnOK.DialogResult = loginform.DialogResult.OK
If loginform.ShowDialog = loginform.DialogResult.OK Then
Application.Run(New frmReferatNET)
End If
End Sub
2. 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?
Yes, I would like to display MDI child form after successfull login.
It depends on user.
Simon Abolnar said:Well. I still have one little problem.
If user press OK button, but username or password is invalid, how can
I found out that login failed in sub main?
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.