Form Control Box

  • Thread starter Thread starter Stephen Martinelli
  • Start date Start date
S

Stephen Martinelli

Good Evening folks

I have a form that I want to have the control box to have just minimized and
maximized.... not the exit. Cant seem to figure it out. Any idea's?

Steve
 
* "Stephen Martinelli said:
I have a form that I want to have the control box to have just minimized and
maximized.... not the exit. Cant seem to figure it out. Any idea's?

Add this to your 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
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top