N
Don't make your login form your mainform.
There is not 'one' right way. I find this the nicest.
In a normal mainform you can set in the load event to show your login form.
A lot of people are writing that in the load event the form is not yet
showed, that is very nice because now you can do in that. (In a very
rudimentair way there is needed some more)
\\\
dim frmLogin = new formLoging
if frmLogin.show <> message.Ok then
then me.close
else
frmLogin.dispose
'normally a dispose is not needed however a showdialog is one of the
exceptions
end if
And your program stops if the login form not returns dialog.ok.
I hope this helps,
Cor
"N! Xau" <nx**@hotmail.com> schreef in bericht
news:11**********************@g43g2000cwa.googlegr oups.com...
HI,
my project's start object is a login form.
When login is successful, it opens a new form, with:
Dim CalledForm As New MyForm
CalledForm.Owner = Me
CalledForm.Show()
Now I want login form to disappear once CalledForm has opened.
Setting enabled / visible to true, form is still in memory and the
application does not close.
With Me.Dispose() into login form code, CalledForm closes too (not only
login form).
What is the right way?
Thanks
N! Xau