minimize vb.net forms to mdiparent bottom eg. adobe photoshop

笑着哭i 提交于 2019-12-08 12:53:03

问题


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?


回答1:


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?



来源:https://stackoverflow.com/questions/16008340/minimize-vb-net-forms-to-mdiparent-bottom-eg-adobe-photoshop

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!