FormBorderStyle = FormBorderStyle.SizableToolWindow 兄弟把这句添到生成窗口的:就可以啦 Public Sub New() MyBase.New() Me.MaximizeBox = False FormBorderStyle = FormBorderStyle.SizableToolWindow 'This call is required by the Windows Form Designer. InitializeComponent() 'Add any initialization after the InitializeComponent() call End Sub
this.MinimizeBox=false;
this.MinimizeBox=false;
只是让那两个按钮变灰.要让它不显示可以在属性栏里把一个***的东东改为false~(具体名字不太记得了,呵呵)
我设置了子窗体这些属性后。从MDI父窗体打开这些最大化子窗体后,MID父窗体右上角还有子窗体的最大化,最小化还在啊。
this.MinimizeBox=false;
这两个属性同时为false的时候按钮就不会出现了,如果只是其中一个为fasle,则两个按钮都在,只是设为false的按钮会变灰.
FormBorderStyle 属性里面 的设置以下就可以了
只用FormBorderStyle枚举就行了.
可能你们理解错了..是MDI窗体啊。
roomid:5201
typenum:2
兄弟把这句添到生成窗口的:就可以啦
Public Sub New()
MyBase.New()
Me.MaximizeBox = False FormBorderStyle = FormBorderStyle.SizableToolWindow
'This call is required by the Windows Form Designer.
InitializeComponent() 'Add any initialization after the InitializeComponent() call End Sub