winform程序,子窗体如何显示在主窗体的正中 例如:在form_parent中点击一按钮后,显示child窗体,如何让子窗体显示在主窗体的正中Form_child child= new Form_child();child.ShowDialog(); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Form_child child= new Form_child(); child.StartPosition = FormStartPosition.CenterParent;child.ShowDialog(); 把StartPosition属性设置成CenterParent就可以了 StartPosition = FormStartPosition.CenterParent 根据父窗体的Location确定子窗体的Location位置就行了。 startposition属性设为 Centerparent child.StartPosition = FormStartPosition.CenterParent; 求解 treeview中怎么隐藏或者不启用checkbox 如何给 datagrid 页眉(head) 整行 设置背景图? delphi的代码在C#中如何实现 如何在c#中创建数组,列表,然后在列表里添加,修改,删除数据。 TextBox控件 大家帮帮我吧,谢谢老师们了,一个VB.net2003中的访问主线程控件问题? wpf中DependencyProperty的解释 C#怎么读取orcle数据库的内容 Execl和sql server 的格式转换问题 C#中用pen时出错。(希望快结贴) c# c/s 通过webservice验证 C#.net如何调用pb的dll?
Form_child child= new Form_child();
child.StartPosition = FormStartPosition.CenterParent;
child.ShowDialog();