As the beginner I want to know Is it necessary to add MDI parent for Library management System?

Can this be done without MDI Parent too?

And also is it necessary to add the below code for mdi parent of every project?

Private Sub ShowNewForm(ByVal sender As Object, ByVal e As EventArgs)
    ' Create a new instance of the child form.
    Dim ChildForm As New System.Windows.Forms.Form
    ' Make it a child of this MDI form before showing it.
    ChildForm.MdiParent = Me

    m_ChildFormNumber += 1
    ChildForm.Text = "Window " & m_ChildFormNumber

End Sub

Kindly help me soon.

6 Years
Discussion Span
Last Post by Pgmer

Is not necessary, it depends on your own needs or how the user want the software to look like and if you think
you get confusing on it please leave it. But if you want to be a good programmer it's better to know it


Guys I am asking you the solution is this the right code that should be added to all mdi parent form?
Is there any other code also?


Dear Iamateur Do you understand what the code is? What you mean by all the MDI form? application will have one MDI form. Not many... And the code above you wrote is for setting the child form to its parent as MDI form

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.