How to prevent moving of application window

If you want to “lock” your application window position and prevent user from moving it, it’s really simple.
The application form will be completely immovable, but user can still resize, minimize or maximize it. How does it work? We will just remove “move” command from system menu using simple code in OnCreate event of the form. In second part of code (OnClick event of button), we will enable moving again.