Removing Min/Max/Close buttons from MDI child

J

JSM

Hi,

Is it possible to remove the minimise, maximise and close buttons on an MDI
child form? I know the documentation say all MDI child forms will have these
buttons regardless of whether you disable them or not but surely there must
be a way via an API call or something.

Cheers,

John
 
J

JSM

Don't worry I figured it out

myForm.MdiParent=this;
myForm.Menu=null;
myForm.Text="";
myForm.ControlBox=false;
myForm.Dock=DockStyle.Fill;


Cheers,

John
 
J

JSM

That doesn't work because if you maximise the form you still get the
buttons. The trick was to set the docking style to "fill" instead of using
maximise.

Thanks for the reply anyway.

Cheers
 

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