Solved

Close form button on visual basic 2008

Posted on 2010-09-02
4
319 Views
Last Modified: 2012-05-10
How to remove the close button on the top of the forms?
0
Comment
Question by:Jose Bredariol
  • 2
4 Comments
 
LVL 7

Assisted Solution

by:Alex_W
Alex_W earned 83 total points
ID: 33590010
You can change the Form Border Style proptery to none.
0
 
LVL 17

Assisted Solution

by:Zhaolai
Zhaolai earned 42 total points
ID: 33590054
Set Form's ControlBox property = False.
0
 
LVL 7

Accepted Solution

by:
Alex_W earned 83 total points
ID: 33590120
If you wanted to keep the minimize button but disable the others add this to your code:
 
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
0
 

Author Closing Comment

by:Jose Bredariol
ID: 33590558
Thanks all
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now