求代码

解决方案 »

  1.   


    Form1 f = new Form1();f.StartPosition = FormStartPosition.Manual; \\here's the keyf.Left = 10;f.Top = 10;f.MdiParent = this;f.Show();
      

  2.   

    Form1 f = new Form1();
    f.StartPosition = FormStartPosition.CenterParent;
    f.Show();
    CenterParent 窗体在其父窗体中居中。 
    CenterScreen 窗体在当前显示窗口中居中,其尺寸在窗体大小中指定。 
    Manual 窗体的位置由 Location 属性确定。 
    WindowsDefaultBounds 窗体定位在 Windows 默认位置,其边界也由 Windows 默认决定。 
    WindowsDefaultLocation 窗体定位在 Windows 默认位置,其尺寸在窗体大小中指定。