Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MDI Setup

Status
Not open for further replies.

skinrock

Programmer
Nov 20, 2004
23
US
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:
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?
 
Not sure how to edit or delete, but nevermind the original post. I figured it out:

Code:
Dim frm As New frmSignUp2
frm.MdiParent = Me.MdiParent
frm.Show()
Me.Close()
 
Just put it between these two tags:

[code*]
[/code*]

(take out the *)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top