Put this anywhere in the form.
Protected Overrides ReadOnly Property CreateParams() As CreateParams
Get
Dim cp As CreateParams = MyBase.CreateParams
Const CS_DBLCLKS As Int32 = &H8
Const CS_NOCLOSE As Int32 = &H200
cp.ClassStyle = CS_DBLCLKS Or CS_NOCLOSE
Return cp
End Get
End Property
"krishna" <ve*************@gmail.com> wrote in message
news:0e****************************@phx.gbl...
Hi,
I would like to disable the close icon on the
form which will be available at the right most corner of
the form in VB.NET which property i have to set.
Regards,
Krishna.