有一个属性,可以选择screencenter的。

解决方案 »

  1.   

    让其保持与四边的距离不变
    Anchor属性
      

  2.   

    在设计界面上让控件居中,然后把它锚定到四个边即可
    选择某个控件,在属性里在有anchor属性,锚定就是了
      

  3.   

    screencente未找到;
    锚定四个边并未水平居中,不知是否还有其它设置。
      

  4.   

    不知道有没有这个属性……不过你可以在窗体的load和resize事件里面手工写private void Form1_Load(object sender, System.EventArgs e)
    {
    label1.Location = new Point((this.Width-label1.Width)/2,(this.Height-label1.Height)/2);
    }
    private void Form1_Resize(object sender, System.EventArgs e)
    {
    label1.Location = new Point((this.Width-label1.Width)/2,(this.Height-label1.Height)/2);
    }
      

  5.   

    设置lable的anchor属性就行了!!!