How to disable the "X" on a Form
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: How to disable the "X" on a Form

  1. #1
    Join Date
    Jun 2000
    Location
    dumfries,va,usa
    Posts
    227

    How to disable the "X" on a Form

    Hi all,

    Can someone please let me know how I can disable the "X" at the top right corner on a form. When called from the web, the form opens a new window and loads into it. When the users are done, they naturally click on the X on the form leaving the browser window still open.

    Thanks,
    Leo
    leonard905
    leonard905@yahoo.com

  2. #2
    Join Date
    May 2002
    Posts
    2,645
    Disable it. Set "Close allowed" to "no" in the window's property pallette.

  3. #3
    Join Date
    Jun 2000
    Location
    dumfries,va,usa
    Posts
    227
    Thanks a lot. Is there a way to set this value for multiple forms.
    leonard905
    leonard905@yahoo.com

  4. #4
    Join Date
    May 2002
    Posts
    2,645
    By changing the setting in multiple forms. The set_window_property built-in doesn't have access to this property, AFAIK. You can size, position, color, and other things, but prevent closing by disabling the "X" (or its equivalent in UNIX), I am pretty sure, can't be done via code. You can try to capture the on-key event and do null.

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