C#程序,父窗体的运用!高手请进,在线等 !!!!

来源:百度知道 编辑:UC知道 时间:2024/05/10 19:57:01
做一个管理软件, 主窗体是一个mdi窗体, 字窗体要求出现在主窗体的最右边,怎么设置,系统给的startPostion属性 只有靠在最左边, 也不会其他捕捉窗体屏幕的方法, 急求高手阿 ! 在线等 高手急求

Form f = new Form();
f.MdiParent = this;
f.StartPosition = FormStartPosition.Manual;
f.Location = new Point(this.ClientRectangle.Right - f.Bounds.Width, f.Location.Y);
f.Show();

startPostion 是一个FormstartPostion 类型的属性 不是int....
无语一下

startPostion = mdiForm.Width - childForm.Width;