×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

How to add an SDI child form to a main Modal Form?

How to add an SDI child form to a main Modal Form?

How to add an SDI child form to a main Modal Form?

(OP)
Colleagues,
I create a modal form frmMain (the name is telling, isn't it? winky smile ).
Then I added another, existing (SDI) form (which I'm gonna call from the bar menu on that MDI form)...
... and this is where I ran into a stump: I do not see IsMdiChild property in its properties sheet, only IsMdiContainer!

What am I missing?

AHWBGA!

Regards,

Ilya

RE: How to add an SDI child form to a main Modal Form?

You can't view the isMdiChild property at design time

RE: How to add an SDI child form to a main Modal Form?

(OP)
OK, then - how to add a child SDI form to a parent MDI one?
(That was the original question, BTW.)

Regards,

Ilya

RE: How to add an SDI child form to a main Modal Form?

Assuming your MDI parent is called something like myMDIContainer and the child is called myMDIChild, then something like the following in the container's load event:

CODE

Private Sub myMDIContainer_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    If Me.IsMdiContainer Then
        myMDIChild.MdiParent = Me
        myMDIChild.Show()
    End If
End Sub 

Subsequent to this, myMDIChild.IsMDIChild should return True

RE: How to add an SDI child form to a main Modal Form?

(OP)
T's working!
thanks2
Issue's been resolved, case is closed.

Regards,

Ilya

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close