想请教下如何控制mdi程序中子程序显示的位置
SellForm sf = new SellForm();
sf.MdiParent = this;
Point p = new Point(this.Location.X + c1OutBar1.Width, this.Location.Y + menuStrip1.Height + pictureBox1.Height);
sf.Location = p;
sf.Show();
调试过 p获得的坐标是正确的。只是窗口显示的位置还是不变
SellForm sf = new SellForm();
sf.MdiParent = this;
Point p = new Point(this.Location.X + c1OutBar1.Width, this.Location.Y + menuStrip1.Height + pictureBox1.Height);
sf.Location = p;
sf.Show();
调试过 p获得的坐标是正确的。只是窗口显示的位置还是不变
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货