Form form1=new Form()
form1.mdiparent=this;
form1.show();
form1.bound=new rectangle(0,0,300,300);
其他类似

解决方案 »

  1.   

    this.Location = new Point(0,0);
    Form2 fr2 = new Form2();
    //将fr2显示在300,0的位置
    fr2.Show();
    Form3 fr3 = new Form3();
    //将fr2显示在600,0的位置
    fr3.Show();如何来实现
      

  2.   

    可以这样试
    this.Location = new Point(0,0);
    Form2 fr2 = new Form2();
    //将fr2显示在300,0的位置
    fr2.Location = new Point(300, 0);
    fr2.StartPosition = FormStartPosition.Manual;
    fr2.Show();
    Form3 fr3 = new Form3();
    //将fr2显示在600,0的位置
    fr2.Location = new Point(600, 0);
    fr2.StartPosition = FormStartPosition.Manual;
    fr3.Show();
      

  3.   

    把这个位置定位写在要定位的窗体的load代码段中就行了.如下:
    private void Form2_Load(object sender, System.EventArgs e)
    {
        this.Top=intValue;
        this.Left=intValue;
    }
      

  4.   

    Form2 xxx=new Form2();
    xxx.Location=this.comboBox1.Location;
    xxx.StartPosition = FormStartPosition.Manual;
    xxx.Left=comboBox1.PointToScreen(new Point(0,this.comboBox1.Height)).X; 
    xxx.Top=comboBox1.PointToScreen(new Point(0,comboBox1.Height)).Y;
    xxx.Width=comboBox1.Width;
    xxx.Height=300;
    xxx.ShowDialog();
    这个是一个弹出窗体模拟的例子,模拟从combox上弹出一个子窗体~
      

  5.   

    你不是说控制子窗体位置吗?
    如果不是mdi,那就更简单了呀。
    你就指定窗体的location呀。有什么问题吗?
      

  6.   

    [STAThread]
    static void Main() 
    {
    Application.Run(new Form1());
    }private Form1_Load(object sender, System.EventArgs e)
    {
             this.Bound=new Rectangle(0,0,300,300);
             Form2 myForm2=new Form2();
             myForm2.Bound=new Rectangle(300,0,300,300);
             myForm2.Show();         Form3 myForm3=new Form3();
             myForm3.Bound=new Rectangle(600,0,300,300);
             myForm3.Show();
    }