I have a main form window which will pop up a new form window. I want to lock the location of the popup form so that the window cannot be moved and it will move at the same time as the main form.
(so if a user drags the main form the popup moves with it)

Did a search on the site and some did it like this:

```
this.FormBorderStyle=System.Windows.Forms.FormBorderStyle.None

```

and I have the Locked attribute set to True but that doesn't work.

But I want to keep the borders. What's the proper way of locking a form?