C#: how to disable form move?

jacknad picture jacknad · Mar 2, 2011 · Viewed 11.3k times · Source

The MSV-Studio description for Locked is "The Locked property determines if we can move or resize the control" so I set the winforms Locked property to true but the form is still movable. What is the correct way to prevent the form from moving?

Answer

Eric Mickelsen picture Eric Mickelsen · Mar 2, 2011

Maximize it. Thanks, JackN. ;-)