本文介绍了最小化 vb.net 形式到 mdiparent 底部,例如.adobe photoshop的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

vb.net 2008

vb.net 2008

我有 1 个 mdiparent 和许多子窗体.单击子窗体的最小化按钮时,它应该最小化并显示在 mdiparent 的底部而不是任务栏中.就像在 adobe photoshop 中一样.有可能吗?如果是,如何?

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?

推荐答案

您需要将子 Form 的 MdiParent 属性设置为您的 MdiContainer.此示例假设有两个 Form,一个名为 Form1,另一个名为 Form2.所有属性都以编程方式设置.

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.

公开课表格1

Public Sub New()

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

End Sub

参考:如何使用MDI 父表单?

这篇关于最小化 vb.net 形式到 mdiparent 底部,例如.adobe photoshop的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-30 05:47