设置默认创建的位置
在Form的构造函数内添加 this.StartPosition = FormStartPosition.CenterScreen;
CenterParent //父窗体内部的居中
Manual //自定义位置
this.Location = new Point(2000.500);
左上角为零零点,双屏的合起来计算
图形设备接口GDI
设置默认创建的位置
在Form的构造函数内添加 this.StartPosition = FormStartPosition.CenterScreen;
CenterParent //父窗体内部的居中
Manual //自定义位置
this.Location = new Point(2000.500);
左上角为零零点,双屏的合起来计算
图形设备接口GDI
this.startpostion = formstartposition.manual
this.location = new point()
50像素约等于1厘米。
这里要是不是很懂的可以打开画图,然后把鼠标移动到左上角后看左下角的那个坐标变化