I have this project so far that is taking on the form of an MDI application. The first thing I want to tackle is signing up for access to the program. I want to do this over two forms. The first form has personal info, and when you hit next, if everything is successful, a userinfo table on my database is updated. After it has been updated, I want to close that form and open up the second, which is selecting a username and password. I was using this:
frmSignUp2 is the username/password form, and frmMain is my MDI parent. this is basically the same procedure I used for my menu item on the parent form (they go to "File>Sign UP" and it executes that code). The only difference is that I was able to say frm.MdiParent = Me since the current object was in fact the MdiParent. But now that I am trying to do this from a Child form, it's not working. Any suggestions?
Code:
Dim frm As New frmSignUp2
Dim mainFrm As New frmMain
frm.MdiParent = mainFrm
frm.Show()
Me.Close()
frmSignUp2 is the username/password form, and frmMain is my MDI parent. this is basically the same procedure I used for my menu item on the parent form (they go to "File>Sign UP" and it executes that code). The only difference is that I was able to say frm.MdiParent = Me since the current object was in fact the MdiParent. But now that I am trying to do this from a Child form, it's not working. Any suggestions?