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
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.
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
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.