By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,524 Members | 1,519 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,524 IT Pros & Developers. It's quick & easy.

hide mdi child form frame boarder, minimize and maximize buttons

P: n/a
I'm building a MDI application that has child forms. I'm trying to find a
way to hide the inner boarder of the child frame area. Setting the
FormBoarderStyle of the child form has no effect.

Also, when the parent form's FormBoarderStyle is set to nothing, then the
child form is maximized, I get the minimize and maximize buttons at the top
of the parent from even though the boarder style is set to none for both
forms. How do I prevent this? How do I disable the minimize and maximize
buttons of the child form?

thanks
Paul
Nov 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"Paul Welter" <lo******@msdn.nospam.com> schrieb
I'm building a MDI application that has child forms. I'm trying to
find a way to hide the inner boarder of the child frame area.
Setting the FormBoarderStyle of the child form has no effect.

Also, when the parent form's FormBoarderStyle is set to nothing, then
the child form is maximized, I get the minimize and maximize buttons
at the top of the parent from even though the boarder style is set to
none for both forms. How do I prevent this? How do I disable the
minimize and maximize buttons of the child form?


MDI child windows always have a sizable border, a max and min button and a
controlbox. Otherwise they weren't MDI child windows.
--
Armin

http://www.plig.net/nnq/nquote.html

Nov 20 '05 #2

P: n/a
Hi,
Set the following properties to Child Form for ur
requirement.

Me.FormBorderStyle =
System.Windows.Forms.FormBorderStyle.None
Me.MaximizeBox = False
Me.MinimizeBox = False
Me.ControlBox = False
Me.WindowState =
System.Windows.Forms.FormWindowState.Maximized

Regards,
Amal
-----Original Message-----
I'm building a MDI application that has child forms. I'm trying to find away to hide the inner boarder of the child frame area. Setting theFormBoarderStyle of the child form has no effect.

Also, when the parent form's FormBoarderStyle is set to nothing, then thechild form is maximized, I get the minimize and maximize buttons at the topof the parent from even though the boarder style is set to none for bothforms. How do I prevent this? How do I disable the minimize and maximizebuttons of the child form?

thanks
Paul
.

Nov 20 '05 #3

P: n/a
Hi Paul,

Thanks for you posting in the group!

Do you have tried Amal's solution yet?
I think it is just what you want except for the System.Windows.Forms
redundancy.

If you have more concerns on this topic, please feel free to reply this
message.
Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------

Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.