|
|
|
|
VB.NET Mdi Control.
Mdi - VB.NET Multiple Document Interface applications allow you to have multiple documents open within the same application. This is a very popular application interface and can be seen in many modern day applications like, Mozilla Firefox, Internet Explorer 7.0, Microsoft Word and VisualStudio.
Namespace: System::Windows::Forms
System.Windows.Forms (in system.windows.forms.dll)
To create a Mdi form in VB.NET you simply need to set the main form as a Mdi Parent.
Me.IsMdiContainer = True
We create another form in Visual Studio and call it Form2. Now declare the new Form2 in the Main Form.
Dim form2 As New Form2()
We set Form2's MdiParent.
form2.MdiParent = Me
We set Form2's Text value.
form2.Text = "ChildForm"
Now to display Form2, simple call.
form2.Show()
Sending information between MDI and SDI Forms
|
|
|
|
|