hide mdi child form frame boarder, minimize and maximize buttons

P

Paul Welter

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
 
A

Armin Zingler

Paul Welter said:
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.
 
A

Amalorpavanathan Y \(AMAL\)

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
 
G

Gary Chang

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.
--------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top