Results 1 to 4 of 4

Thread: Prevent user from moving form

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2004
    Posts
    263

    Prevent user from moving form

    I have the following settings:
    ControlBox : False
    WindowState: Maximized

    Because I want the user to have a full screen application that they cannot close without using my Exit menu. The problem is, they can simply grab the title bar of the form and drag it, exposing the desktop!

    Is there a way to prevent this?

    Thanks,

    Dave

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Prevent user from moving form

    Try setting the form border style to none, that should prevent dragging. I haven't tried it, this is based on ancient memories.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2004
    Posts
    263

    Re: Prevent user from moving form

    Yea that'll do it. It seems like it shouldn't be able to be dragged if it does have a title bar and is maximized though, no?

    Dave

  4. #4
    PowerPoster
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,070

    Re: Prevent user from moving form

    I don't know if setting ControlBox to false will change this, but usually a maximized form cannot be moved by dragging the title bar, no. However, you can always doubleclick the title bar which restores the window state (no longer maximized) and then it can normally be dragged.

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