質問

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?

役に立ちましたか?

解決

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?

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top