Click here to Skip to main content
12,692,580 members (35,097 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

4.2K views
3 bookmarked
Posted

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

You may also be interested in...

Comments and Discussions

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