From c = new From();
//在B窗口中写
protected override void OnLoad(EventArgs e)
{base.OnLoad(e);
c.Show(this);
}
protected override void OnLayout(LayoutEventArgs levent)
{
base.OnLayout(levent);
c.Height = this.Height;
c.Top = this.Top;
c.Left = this.Right;
}
protected override void OnLocationChanged(EventArgs e)
{
base.OnLocationChanged(e);
c.Height = this.Height;
c.Top = this.Top;
c.Left = this.Right;
}