G
Guest
I am working on a VB.Net application and am having trouble getting a grasp on
the new way to open and close forms. I understand the object-oriented
approach of .NET, but not fully. I will explain the situation, and if anyone
can point me to any good examples or articles I would appreciate it.
The application starts with a simple "frmLogin" form which asks for the
username/password. Upon entering the correct password, I would like the user
to close this form, and open the "frmMain" form which is the Main form in the
application. What is the best approach to do this?
I had this code:
Dim frm as New frmMain()
frmMain.Show()
Me.Hide()
However, this leaves the "frmLogin" form still open. Is there a way to
close, or get rid of the frmLogin after the user successfully logs in?
Thanks for any help!!
the new way to open and close forms. I understand the object-oriented
approach of .NET, but not fully. I will explain the situation, and if anyone
can point me to any good examples or articles I would appreciate it.
The application starts with a simple "frmLogin" form which asks for the
username/password. Upon entering the correct password, I would like the user
to close this form, and open the "frmMain" form which is the Main form in the
application. What is the best approach to do this?
I had this code:
Dim frm as New frmMain()
frmMain.Show()
Me.Hide()
However, this leaves the "frmLogin" form still open. Is there a way to
close, or get rid of the frmLogin after the user successfully logs in?
Thanks for any help!!