Disable Close button in C# Window Forms

03 Dec
private const int CP_NOCLOSE_BUTTON = 0x200;
 protected override CreateParams CreateParams
        CreateParams myCp = base.CreateParams;
        myCp.ClassStyle = myCp.ClassStyle | CP_NOCLOSE_BUTTON ;
        return myCp;

Posted by on December 3, 2009 in Window Application


3 responses to “Disable Close button in C# Window Forms

  1. online marketing blog

    August 28, 2014 at 7:16 AM

    I will immediately grab your rss as I can’t find your e-mail subscription hyperlink or
    e-newsletter service. Do you have any? Kindly
    permit me recognise in order that I may subscribe.

  2. Mitzi

    August 28, 2014 at 7:37 AM

    Hello my family member! I wish to say that this post is amazing, great
    written and come with approximately all vital infos.
    I’d like to peer extra posts like this .

  3. online shop fashion

    September 21, 2014 at 2:42 AM

    An outstanding share! I have just forwarded this onto
    a friend who was conducting a little homework on this. And he actually ordered me breakfast simply because I stumbled upon it
    for him… lol. So let me reword this…. Thank YOU for the meal!!
    But yeah, thanx for spending some time to discuss this
    topic here on your site.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: