MdiChild form & Textbar

torg

Regular
Joined
Nov 7, 2002
Messages
60
Location
Norway
I want to show a childform (without any border, textbar) in the parentform. I`ve used the code below, But when I start the program, I still see the borders and textbar.
What am I doing wrong?
Visual Basic:
Private Sub MDIParent_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim NewMDIChild As New Registrer()

        NewMDIChild.MdiParent = Me

        NewMDIChild.FormBorderStyle = BorderStyle.None
        'NewMDIChild.FormBorderStyle = FormBorderStyle.None
        NewMDIChild.Dock = DockStyle.Fill
        NewMDIChild.Show()
    End Sub
 
that`s the funny part. I did that, but it was still the same, the textbar was stil there after formborderstyle was set to: none. In designtime, the border dissapeared, but in run-mode the border was still there.
 
Might I ask, why do you need to show the form with no borders or
titlebar? This is not the way MDI children are meant to be used, so don't
be surprised if it doesn't behave the way you think it should. If you
can, I recommend staying with normal MDI windows.
 
Back
Top