469,648 Members | 1,166 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,648 developers. It's quick & easy.

hide mdi child form frame boarder, minimize and maximize buttons

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
3 8099
"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
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
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.

Similar topics

reply views Thread by Manoj | last post: by
1 post views Thread by Lauren Quantrell | last post: by
4 posts views Thread by Bernie Yaeger | last post: by
9 posts views Thread by Jason | last post: by
4 posts views Thread by Daniel R. Rossnagel | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.