Removing the Minimize, Maximize and Close button

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jamaicafinest
    New Member
    • Oct 2006
    • 2

    Removing the Minimize, Maximize and Close button

    Can someone tell me how to remove the close button from the program so that only the exit button that you create can close the program

    Thank You
  • mra
    New Member
    • Sep 2006
    • 15

    #2
    hi
    are you mean removing the minimize, maximise and close button of a form. if it please do the following steps
    set the controlbox property of the form false

    bset of luck

    Comment

    • Killer42
      Recognized Expert Expert
      • Oct 2006
      • 8429

      #3
      Originally posted by mra
      hi
      are you mean removing the minimize, maximise and close button of a form. if it please do the following steps
      set the controlbox property of the form false
      Don't forget the MinButton and MaxButton properties, too. :)

      Also, you can leave the controls as they are, and in the Form_QueryUnloa d event, test the UnloadMode value. If it's one you don't like (such as "user clicked the close button") then just set Cancel = True to disallow the close.

      Comment

      Working...