Locked

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does the locked property on a .net windows form keep the user from moving or
resizing the form, I set it to true, remove the min/max buttons, but can
still click on the title bar and move / resize it. Any ideas??
Thanks
 
The Locked property is intended for design-time use so that once you set the
state of your UI you do not unintentionally make changes to it. You can make
a Form non-resizable by changing it's FormBorderStyle property from
"Sizeable" to another value such as "FixedSingle". As far as not allowing
the user to move the Window you could change the FormBorderStyle to "None",
although you won't have a caption bar this way.
 
* said:
Does the locked property on a .net windows form keep the user from moving or
resizing the form, I set it to true, remove the min/max buttons, but can
still click on the title bar and move / resize it. Any ideas??

'Locked' only affects the behavior of the control in the Windows Forms
editor.

If you want to prevent the user from moving the form, have a look here:

<http://groups.google.de/[email protected]>
 
Back
Top