MDI Child form Min Max Button

R

Raghu

Hi All

I got MDI project in c#. When i load child forms in
container i want to hide or disable Min,Max and Close
buttons of child form. Is there any way to do this?

Thanks in advance

Regards
Raghu
 
M

Maniaque

Raghu said:
Hi All

I got MDI project in c#. When i load child forms in
container i want to hide or disable Min,Max and Close
buttons of child form. Is there any way to do this?

Thanks in advance

Regards
Raghu

You can easily disable Maximize and Minimize buttons - they are controlled
through MaximizeBox and MinimizeBox properties of the form, but I don't know
the way of disabling Close button - you can cancel the unloading if the form
by setting Cancel flag in the Unloading event of the form - this will
prevent form from unloading.
 

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