MDI Child form Min Max Button

  • Thread starter Thread starter Raghu
  • Start date Start date
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
 
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.
 
Back
Top