So far I have a login and sign up section for this project I'm working on. I wanted to use a method that would pevent the user from opening multiple instances of the sign up and login forms. At first, I was thinking of loading the forms normally, and just running a check to see what MDI children the parent forms contain, but I can't figure out how to tell what form they are. So, my other idea was loading the form modally. With the login, there is one form, so I just say:
it works fine, you can't interact with the parent form until you do something with the login. Now, the problem is, my sign up involves three forms. The first form works fine, I use the same method as above, but when I try to use it when the user hits "Next", even though I added a close statement, the next form loads on top of it and locks out the parent form, the same way the original one does. The code is:
Is there a way to override this modal attribute, or should I somehow implement the original idea regarding checking for existing forms? Thanks!
Code:
Dim frm As New frmLogIn
frm.ShowDialog()
Code:
Dim frm As New frmLoginInfo
Me.Close()
frm.ShowDialog()