Frage

vb.net 2008

I have 1 mdiparent and many child forms. on clicking minimize button of child form it should minimize and display at the botton of mdiparent and not in taskbar. like in adobe photoshop. Is it possible to do? if yes how?

War es hilfreich?

Lösung

You need to set the child Form's MdiParent Property to your MdiContainer. This example assumes two Forms one named Form1 and the other named Form2. All properties are being set programmatically.

Public Class Form1

Public Sub New()

    InitializeComponent()
    Me.IsMdiContainer = True
    Dim frm2 As Form2 = New Form2
    frm2.Owner = Me
    frm2.MdiParent = Me
    frm2.Show()

End Sub

Refer: how to make mdi child forms using MDI parent form?

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top