Hide close button for Windows Form

In the windows form add this code

  protected override CreateParams CreateParams

       {
           get
           {
               CreateParams param = base.CreateParams;
               param.ClassStyle = param.ClassStyle | 0x200;
               return param;
           }
       }

Comments

Popular posts from this blog

ContextSwitchDeadlock was detected

Visual Studio setup and deployment projects

Using SvcUtil.exe to generate the proxy class and config file