how to remove the title bar of a child form in vb.net

2.9k views Asked by At

I am creating a MdiParent form in vb.net.
For that I have created the child form.
The child form's FormBorderStyle is none.
But while I open it on the MdiParent form, it shows the title bar at the bottom of the MdiParent form.
How can I remove it?

1

There are 1 answers

0
Matt Wilko On

I don't think you are setting the MdiParent. here is some sample code that works for me:

Private Sub frmParent_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    Me.IsMdiContainer = True

    frmChild.FormBorderStyle = Windows.Forms.FormBorderStyle.None
    frmChild.MdiParent = Me
    frmChild.Show()
End Sub