SIGN UP MEMBER LOGIN:    
Blog

How to create a MDI Child Form in VB.NET (Runtime Version)

Posted by ANDY Nordlage Blogs | Windows Forms with VB.NET Aug 20, 2010
How to create a MDI Child Form in VB.NET
Download Files: Form1.zip

This easy to understand code snipped shows you how to add a MDI Child Form to your MDI Container (or parent) Form.

Public Class Form1

 

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

        ' Dinamically create a new Form called Form2

        Dim Form2 As New Form

        ' Tell Form2 to have aparent (Form1), means it has to be displayed inside Form1

        Form2.MdiParent = Me

        ' Add Caption to Form2

        Form2.Text = "Form2"

        ' Show Form2 (inside the client area of Form1

        Form2.Show()

    End Sub

End Class

share this blog :
post comment
 

Hi..

I have created a application in which a user has to login by username and password or if the user does not exist he/she can make the account.
I want that whenever a new account is created a form with the name of the user should be created with certain buttons and textbox and information...

Posted by Niraj Nov 09, 2010