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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top