Windows应用程序中的设计表单 [英] Designing form in Windows Application

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

问题描述



谁能帮我解决这个问题.

我有一个MDI容器,正在打开3个表格.我想要的是三种形式中的一种,其中一种形式在任何情况下都不应最大化.

所有表单都已设置了mdiparent属性.

Hi,

Can anyone help me fix this problem.

I have a mdi container in that I am opening 3 forms. What I want is out of the three forms, one of the form should not get maximized in any condition.

All the forms have the mdiparent property already set.

推荐答案

此属性可能会帮助您

This Property may helps you

this.FormBorderStyle=FormBorderStyle.FixedToolWindow


首先,您需要设置
Me.WindowState=FormWindowState.Normal
Me.MaximizeBox = False


其次,当您调用表单时,需要在mdi父级中将表单称为


Second you need to call form as

form.showdialog()

.


这真的很简单. br/> 只需将maximum属性设置为false-this.MaximizeBox = false;

这是一个简单的博客 [
Its quite simple really.
Just set the maximize property to false - this.MaximizeBox = false;

Here is a simple blog[^] explaining this.


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

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