本帖最后由 boxerwg 于 2010-04-08 00:43:35 编辑

解决方案 »

  1.   

    button_Click的时候,获取sender的Location,然后把Location+宽度,设置为弹出窗口的Location,就OK!注意:Location是相对父控件,不是屏幕
      

  2.   

    Control ctrl = (sender as Control);
    Myform f = new Myform();
    if (ctrl != null)
    {
      f.StartPosition = FormStartPosition.Manual;
      Point p = ctrl.Parent.PointToScreen(ctrl.Location);
      f.Location = p;
    }
    f.ShowDialog();
      

  3.   

    private void button1_Click(object sender, EventArgs e)
            {
               
                Form2 form = new Form2();
                form.Show();
                form.Location = this.Location;
                
                
            }