Results 1 to 3 of 3

Thread: [2005] RESOLVED - Remove or Disable the [X] on a forms title

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2006
    Posts
    54

    [2005] RESOLVED - Remove or Disable the [X] on a forms title

    How can i disable the little x at the top of a window or disable it? Ive found some code snippets but they dont work.

    Thanks,
    chris
    Last edited by UsefulIdiot; Aug 16th, 2006 at 11:58 AM.

  2. #2
    Fanatic Member
    Join Date
    Aug 2006
    Location
    Chicago, IL
    Posts
    514

    Re: [2005] Remove or Disable the [X] on a forms title

    The ControlBox property. Set it to False
    Warren Ayen
    Senior C# Developer
    DLS Software Studios (http://www.dlssoftwarestudios.com/)

    I use Microsoft Visual Studio 2005, 2008, working with Visual Basic and Visual C#
    Hey! If you like my post, or I solve your issue, please Rate Me!

  3. #3
    Fanatic Member
    Join Date
    Aug 2006
    Location
    Chicago, IL
    Posts
    514

    Re: [2005] Remove or Disable the [X] on a forms title

    Either that, or set a flag = if someone tries to dispose of the form, put the line:

    VB Code:
    1. Private Sub Form1_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
    2.         e.Cancel = True
    3. End Sub
    Warren Ayen
    Senior C# Developer
    DLS Software Studios (http://www.dlssoftwarestudios.com/)

    I use Microsoft Visual Studio 2005, 2008, working with Visual Basic and Visual C#
    Hey! If you like my post, or I solve your issue, please Rate Me!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width