Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB.NET
ASP.NET
C#
VB Classic
ASP Classic
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Link to us
MDI Example in VB.NET
Author:
Ken Mercer
E-mail:
Click to e-mail author
Submitted:
10/7/2003
Version:
VB.NET
Compatibility:
VB.NET
Category:
Forms
Views:
38791
Creates an MDI application which consists of a main "parent" form and a child form.
Declarations:
Code:
Imports System Imports System.Windows.Forms Public Module AppModule Public Sub Main() Application.Run(New MainForm()) End Sub End Module Public Class MainForm Inherits Form Public Sub New() ' Set parent window caption. Text = "Main Parent Window" ' Set this to be an MDI parent form. IsMdiContainer = True ' Create a child form. Dim myChild As New DocumentForm("My Document", Me) myChild.Show End Sub End Class Public Class DocumentForm Inherits Form Public Sub New(ByVal name As String, ByVal parent As Form) ' Set the child window caption. Text = name ' Set this to be an MDI child form. MdiParent = parent End Sub End Class
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2024 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement