形成最大化和最小化状态 [英] Form maximize and minimize state
本文介绍了形成最大化和最小化状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
目前,我正在Visual Studio 2010中工作
我有关于表格大小的问题
如果我在MDI中以最大化的形式打开表单
那么所有其他表单也会以相同的方式打开,分别为其各自的表单大小
我该如何控制这种行为,有人可以提出建议吗
在此先感谢
Currently i am working on visual studio 2010
i have a issue regarding form size
if i open a form in maximise form in the MDI
then all other form also open in the same manner instaed of their respective form size
how can i control this behaviour can anyone suggest something
thanks in advance
推荐答案
您无法控制此行为.您所看到的是设计使然.
MDI的目的是为同时编辑同一类型的多个文档提供一个通用接口.如果您将MDI用于其他目的,则确实需要重新考虑应用程序设计.
You cannot contorl this behavior. What you''re seeing is by design.
MDI was meant to provide a common interface to multiple documents of the same type being edited all at once. If you''re using MDI for anything other than this purpose, you really need to rethink your application design.
以mdi格式尝试此代码.
私有子Button1_Click(ByVal发送者为System.Object,ByVal e为System.EventArgs)处理Button1.Click
Form2.MdiParent = Me
Form2.Show()
结束Sub
try this code in mdi form.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Form2.MdiParent = Me
Form2.Show()
End Sub
这篇关于形成最大化和最小化状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文