Click here to Skip to main content
11,438,226 members (66,302 online)
Click here to Skip to main content
Alternative Tip/Trick

Tagged as

Disable the Close box on a form

, 17 Feb 2012 CPOL
Rate this:
Please Sign up or sign in to vote.
This is purely a VB.NET version of what Griff posted Public Const CS_NOCLOSE As Integer = &H200 Protected Overrides ReadOnly Property CreateParams() As System.Windows.Forms.CreateParams Get Dim params As CreateParams = MyBase.CreateParams ...
This is purely a VB.NET version of what Griff posted

 Public Const CS_NOCLOSE As Integer = &H200
 
 Protected Overrides ReadOnly Property CreateParams() As System.Windows.Forms.CreateParams
        Get
            Dim params As CreateParams = MyBase.CreateParams
            params.ClassStyle = CS_NOCLOSE
            Return params
        End Get
    End Property

License

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

Share

About the Author

Simon_Whale
Software Developer Oak Underwriting
United Kingdom United Kingdom
No Biography provided

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.150506.1 | Last Updated 17 Feb 2012
Article Copyright 2012 by Simon_Whale
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid