Click here to Skip to main content
11,490,003 members (65,627 online)
Click here to Skip to main content

Tagged as

Disabling Close Button (X in top right corner of ControlBox)

, 4 Apr 2011 CPOL 10.3K 12
Rate this:
Please Sign up or sign in to vote.
private const int disableX = 0x200;
        protected override CreateParams CreateParams
                CreateParams ObjClose = base.CreateParams;
                ObjClose.ClassStyle = ObjClose.ClassStyle | disableX;
                return ObjClose;


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

charles henington

United States United States
I do not claim to be wrong! I just rarely ever write.

Comments and Discussions

GeneralRe: I think that using API functions to do this job is better th... Pin
Youzelin5-Jul-11 22:36
memberYouzelin5-Jul-11 22:36 
GeneralReason for my vote of 3 I think using API to do this job is ... Pin
Youzelin4-Jul-11 21:56
memberYouzelin4-Jul-11 21:56 
GeneralRe: Well if you think so where is the Alternative???? Pin
charles henington5-Jul-11 15:08
membercharles henington5-Jul-11 15:08 
GeneralReason for my vote of 5 small good tip Pin
boh-unipac13-Apr-11 7:44
memberboh-unipac13-Apr-11 7:44 
GeneralRe: Thanks hope it helps Pin
charles henington18-Apr-11 6:08
membercharles henington18-Apr-11 6:08 
GeneralReason for my vote of 5 nice share Pin
Ridho Anggoro5-Apr-11 0:11
memberRidho Anggoro5-Apr-11 0:11 
GeneralRe: thanks Pin
charles henington6-Apr-11 5:42
membercharles henington6-Apr-11 5:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150520.1 | Last Updated 4 Apr 2011
Article Copyright 2011 by charles henington
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid