Disable minimize and maximize buttons in windows form using dot net

Disable minimize and maximize buttons in windows form

If you are using .Net then in property window of "Windows Form" set "Control Box" to "False".
If You are using .Net 2008. You can disable the form close button by using
"e.Handled=true" in Window's Form_Closing event. 

Comments