lunes, 29 de enero de 2018

Deshabilitar botón salir(exit) WindowsForm

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

No hay comentarios.:

Publicar un comentario