Protected Overrides ReadOnly Property CreateParams() As 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
Now that disables the close button as soon as the form shows, but how can I have it not disable the close button until a user presses a button for example?
Thanks.

New Topic/Question
Reply



MultiQuote



|