在程序启动打开一个窗口后,再打开另一个窗口,我希望这个新的窗口是靠在启动窗口的右侧。
我在新打开的窗口的Load方法中放了下面的代码,但是没用啊,好像frmmain.Location.X是0啊我晕。
frmMain frmmain = new frmMain();
Rectangle Pos = new Rectangle(frmmain.Location.X+ frmmain.Width, frmmain.Location.Y,this.Width,this.Height);
this.Bounds = Pos;
我在新打开的窗口的Load方法中放了下面的代码,但是没用啊,好像frmmain.Location.X是0啊我晕。
frmMain frmmain = new frmMain();
Rectangle Pos = new Rectangle(frmmain.Location.X+ frmmain.Width, frmmain.Location.Y,this.Width,this.Height);
this.Bounds = Pos;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货