disable,close,button,c#,windows,application

Kubilay 6/7/2017 0

This code disables close button on top right of your windows application

C#
 private const int CP_NOCLOSE_BUTTON = 0x200;
 protected override CreateParams CreateParams
 {
     get
     {
        CreateParams myCp = base.CreateParams;
        myCp.ClassStyle = myCp.ClassStyle | CP_NOCLOSE_BUTTON ;
        return myCp;
     }
 }  

Report Bug

Please Login to Report Bug

Reported Bugs

Comments

Please Login to Comment

Comments