locked
Docking MDI-Childs into the SplitContainers Panel RRS feed

  • Question

  • Hello there.

    I use a splitcontainer in my programme, along with a couple of mdi-childs.

    I've got a problem now: The splitcontainer is actually in my main form, which is a mdi-container itself. Whenever I try to use mdi-childs, the panel of the splitcontainer is in front of it. Also I have problems with docking the mdi-child into the panel of the splitcontainer. (I don't know if that would be possible though.)

    I hope someone can help me out.

     

     - SPG

    Sunday, January 25, 2009 6:54 AM

Answers

  • Hi SPG,

    Try this.

    Public Class Form1 
        Private Sub ToolStripButton1_Click(ByVal sender As System.ObjectByVal e As System.EventArgs) Handles ToolStripButton1.Click 
            Dim f As New Form 
            f.TopLevel = False 
            SplitContainer1.Panel1.Controls.Add(f) 
            f.Show() 
        End Sub 
    End Class 

    Riquel


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Wednesday, January 28, 2009 10:15 AM
    Moderator

All replies

  • Hi SPG,

    Try this.

    Public Class Form1 
        Private Sub ToolStripButton1_Click(ByVal sender As System.ObjectByVal e As System.EventArgs) Handles ToolStripButton1.Click 
            Dim f As New Form 
            f.TopLevel = False 
            SplitContainer1.Panel1.Controls.Add(f) 
            f.Show() 
        End Sub 
    End Class 

    Riquel


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Wednesday, January 28, 2009 10:15 AM
    Moderator
  • Thank you very much, it works now.
    Saturday, January 31, 2009 5:06 PM