Click here to Skip to main content
13,198,850 members (41,582 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

4.5K views
3 bookmarked
Posted 17 Feb 2012

Disable the Close box on a form

, 17 Feb 2012
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 --
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.171020.1 | Last Updated 17 Feb 2012
Article Copyright 2012 by Simon_Whale
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid