I want to disable MaximizeBox when child form WindowState is Maximized
-
2012년 5월 8일 화요일 오후 2:31
I want to disable/remove MaximizeBox when child form WindowState is Maximized to the MdiParent form.
I am marked MaximizeBox which i want to disable/remove.
I wrote this code on Menu toolstrip button to open childe form on Parents form
Form2 f2=new Form2();
f2.MdiParent=this;
f2.MaximizeBox=false;
f2.Show();
Which code i have to write to disable/remove MaximizeBox which i marked on above image.
- 편집됨 Akshay Lakhmani 2012년 5월 8일 화요일 오후 2:34
모든 응답
-
2012년 5월 9일 수요일 오전 1:54
this code add :
f2.Dock = DockStyle.Fill;
-
2012년 5월 9일 수요일 오전 5:07
I put this code like this n Form2 maximizeBox is False on Properties windows
Form2 f2 = new Form2();
f2.MdiParent = this;
f2.Dock = DockStyle.Fill;
f2.Show();then form open like this
when i write code like this
Form2 f2 = new Form2();
f2.Dock = DockStyle.Fill;
f2.MdiParent = this;
f2.Show();then form open like this
but nothing happen, i want to disable maximizeBox button of chind class so how can i do that ?
I m uploading my project please download it make changes n return me with my solution.
http://dl.dropbox.com/u/6608612/MDI%20container.rar- 편집됨 Akshay Lakhmani 2012년 5월 9일 수요일 오전 5:10
-
2012년 5월 9일 수요일 오전 7:39중재자
Hi Akshay Lakhmani,
Could you compress your application within zip file format because our computer couldn't install winrar application.
Sincerely,
Jason Wang
Jason Wang [MSFT]
MSDN Community Support | Feedback to us
-
2012년 5월 9일 수요일 오전 7:46
yaa, link is below with zip compressed
http://dl.dropbox.com/u/6608612/MDI%20container.zip
please help me to solve my problem.
-
2012년 5월 10일 목요일 오전 3:05중재자
Hi Akshay,
You need to put the code looks like the following into Form2_Load event handler.
this.MaximizeBox = false;
I feel the MaximizeBox property of Form2 wouldn't take effect when using above way.
Hope it helps you.
Sincerely,
Jason Wang
Jason Wang [MSFT]
MSDN Community Support | Feedback to us
-
2012년 5월 10일 목요일 오전 4:29
It's not working,
It's disabling this MaximizeBox which u can see in below picture
but i want to disable this MaximizeBox which u can see in below picture
I think code for this is something else not directly Form2 MaximizeBox false code.
-
2012년 8월 24일 금요일 오전 12:43
This works for me..
Dim ChildForm As New System.Windows.Forms.Form ChildForm.MdiParent = Me ChildForm.MinimizeBox = False ChildForm.MaximizeBox = False ChildForm.ControlBox = False ChildForm.FormBorderStyle = Windows.Forms.FormBorderStyle.None ChildForm.Dock = DockStyle.Fill ChildForm.Show()
- 편집됨 SuNcO 2012년 8월 24일 금요일 오전 12:49
- 답변으로 표시됨 Akshay Lakhmani 2012년 8월 24일 금요일 오전 4:49
-
2012년 8월 24일 금요일 오전 4:48Thnx a lot but i found my answer while searching on google, thnx a lot 4 the answer.

