How do you prevent a windows from being moved?

前端 未结 15 2044
刺人心
刺人心 2020-11-27 15:30

How would i go about stopping a form from being moved. I have the form border style set as FixedSingle and would like to keep it this way because it looks good in vista :)

15条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-27 16:12

    You can set the FormBorderStyle property of the Form to None

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

提交回复
热议问题