窗體跳轉的時候彈出的另一個窗體
   怎麼能讓他們緊密的相連呢..
      本人是新手...
         希望能給詳細講解下...

解决方案 »

  1.   

    Form1的代码:
            private void button1_Click(object sender, EventArgs e)
            {
                Form2 f2 = new Form2(this);
                f2.Show();
            }
    Form2的代码:
            Form1 f1 = null;
            public Form2(Form1 f)
            {
                InitializeComponent();
                this.f1 = f;
            }        private void Form2_Load(object sender, EventArgs e)
            {
                this.Location = new Point(f1.Location.X + f1.Width, f1.Location.Y);
            }