Results 1 to 5 of 5

Thread: How do I disable a certain thing?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 1999
    Location
    Brisbane, Qld, Australia
    Posts
    78

    Post

    Hi,

    I want to disable the restore or resize button on a form. It is the one in the middle of the minimise button and the close /exit program button. It looks like a square. It is in the top right hand corner of screen of most programs. How can I disable it in code and where can i put it in (Form load etc). I'm sorry I dont know the technical names for them... any help is appreciated and thanx in advance

    Mike

  2. #2
    Member
    Join Date
    Mar 1999
    Location
    Louisville, KY
    Posts
    48

    Post

    You can set the form's MaxButton Property to false. You can do this in design time in the Property window.

    ------------------
    Seth

  3. #3
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    Calgary Alberta
    Posts
    359

    Post

    The buttons are called:

    Minimize and Maximize. To disable either one just set it to false. You can do it via code or just on the property sheet. If you want to remove the max, min and the close (X) then just set ControlBox to false.

    ------------------
    'cos Buzby says so!'

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jun 1999
    Location
    Brisbane, Qld, Australia
    Posts
    78

    Post

    Thanx guys..... I knew it was a stupid question and an easy one. Thanks once again.

  5. #5
    Addicted Member
    Join Date
    Feb 2000
    Posts
    224

    Post

    There is an interesting answer if you want to
    avoid the user from physically resizing your form. Also avoid him from moving the form to other location on the screen. Want it ????

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