使用Windows窗体应用程序的mdi父窗体 [英] mdi parent form using windows form application

查看:109
本文介绍了使用Windows窗体应用程序的mdi父窗体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个表单mdi父类型,并且在此表单中有一个treeview菜单。 treeview菜单在此表单上占用一些空间。当我点击树视图的节点时,打开一个新表格(主表格)。当我最大化打开的表单(主表单)然后一些部分落在treeview.i想要最大化该表单离开树视图菜单部分。

i have a form mdi parent type and in this form have a treeview menu. treeview menu take some space on this form. when i click on a node of treeview a new form open namely(master form). when i maximize the opened form (master form) then some portion goes behind the treeview.i want to maximize that form leave the treeview menu portion.

推荐答案

你是什么看到是标准行为,如果您希望最大化的子表单尊重树视图的位置,那么它应该是DOCKED而不是锚定。您可能希望树视图对着表单的左边缘或右边缘,因此请使用DockStyle.Left或DockStyle.Right。



Alan。
What you are seeing is the standard behaviour and if you want the maximised child forms to respect the positioning of your treeview then it should be DOCKED not anchored. You will probably want the treeview against either the left or right edges of the form so use DockStyle.Left or DockStyle.Right.

Alan.


这篇关于使用Windows窗体应用程序的mdi父窗体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆