Results 1 to 6 of 6

Thread: AnyWay To Disable the Close Button of the Form ?

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2001
    Location
    new jersey
    Posts
    2,904
    but when you do that, don't forget to put in your own close for the form, either from a control of your own or from code as you close down the app, or whatever, otherwise you'll have a form that you can't close except via the task manager and your users will be really annoyed

  2. #2
    Addicted Member
    Join Date
    Oct 2001
    Location
    Bangalore ,India
    Posts
    240
    set the control box property to false ,and then close the in the events yu desire.

  3. #3
    Addicted Member
    Join Date
    Nov 2001
    Posts
    181

    Diable close button..

    Hi Senthil,
    Setting the control box property to false will not allow me to use minimize and maximize buttons.Is there any option to disable other than making the close button invisible and make use of the other two buttons

  4. #4
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    That's not what you originally asked, but I believe the answer is no. You can try setting .ControlBox to false, and then .MinButton/.MaxButton to True, but I have a feeling that won't work...
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  5. #5
    Addicted Member
    Join Date
    Oct 2001
    Location
    Bangalore ,India
    Posts
    240
    hi shanjay!!
    the answer is yu cant
    i dont thinkk so yu can access the frm.mincontrol,frm.maxcontrol proprties,and program accordingll!!!!!
    yu can set controlbox property = false
    and just leave the form.
    if any methods do update
    ,,,,
    senthil

  6. #6
    Addicted Member
    Join Date
    Nov 2001
    Posts
    181
    I tried with the border style we can make minimize and maximize invisible and not the close button. Close button can be amde invisible only using the control box property i think so

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