MDI Parent not showing form controls for child


Author
Message
Andria Jensen
Andria Jensen
Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)
Group: Forum Members
Posts: 336, Visits: 497
I have some dll's with forms which are shown on a menu click in my MDI Parent form.  I have IsMdiContainer=True on the parent, and IsChildForm=True on the child.  I have MaximizeBox=True and MinimizeBox=True for both parent and child.  When I show the child form everything is fine unless I maximize it.  It maximizes within the parent, but I lose my form controls for minimize, restore, and closing the form.  These should show up somewhere shouldn't they?  I don't have a menu bar on the parent, is this the issue?  And if so, can I get around it?  Right now, I can't maximize forms unless I want them to always be maximized...and also, if I click on the parent Close X and a child form is showing, it will the child form on top instead of closing the entire parent.
Replies
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Oh, and this was the code in Form1:

Public Class Form1
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim loForm As New Form2()
        loForm.Show()
        loForm.MdiParent =
Me
        Me.ActivateMdiChild(loForm)
    End Sub
End
Class


StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
And I tried it by setting the MdiParent property on Form2 before showing it and got the same results.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search