How do you prevent a windows from being moved?

前端 未结 15 2040
刺人心
刺人心 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条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-27 16:33

    1. Go to form events-> Location changed

    write the following code

    Location = new Point(this.Width,this.Height);
    

提交回复
热议问题