Windows在myframe中的位置 [英] Windows position inside myframe

查看:83
本文介绍了Windows在myframe中的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将寡妇的位置设置在框架,面板或矩形内部?

Hi How to set my widow position to be inside my frame or panel or rectangle?

frmTrnSummary objTrnSummary = new frmTrnSummary();
objTrnSummary.Owner = this;
objTrnSummary.Height = 410;
objTrnSummary.Width = 992;
objTrnSummary.ShowDialog();
var location = frame1.PointToScreen(new Point(100, 100));
objTrnSummary.Left = 0;
objTrnSummary.Top = 0;



我尝试了此操作,但不起作用.



I tried this but not working.

推荐答案

请注意,已声明,初始化但从未使用过location.如果不是这样,则显示错误的代码片段.永远不要忽略编译警告.

仅此而已,基于您的信息不足.您无需解释它的"this",frmTrnSummary和其他相关细节.

—SA
Note that location is declared, initialized, but never used. If this is not so, you show wrong code fragment. Never ignore compilation warning.

That''s all, based on you insufficient information. You don''t explain what it "this", frmTrnSummary and other relevant detail.

—SA


这篇关于Windows在myframe中的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆