总是第二个表格在特定表格的顶部 [英] always second form on the top on the particular form

查看:53
本文介绍了总是第二个表格在特定表格的顶部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我在我的项目中使用了两种形式,我希望总是在顶部获得第二种形式,在进行处理时,它应该在顶部,无论我的form1是最小还是最大化.我使用topmost = true,但它也在其他窗口上显示顶部.

请告诉我如何.
在此先感谢

hello, i''m using two forms in my project , i want always get 2nd form on the top, when processing on, it should be on the top ,either i form1 is minimise or maximise. i use topmost=true but it show top on other window also.

please tell me how.
thanks in advance

推荐答案

使用form1.Owner = mainForm;
//主表单是表单的名称.
Use the form1.Owner = mainForm;
//main form is name of your form.


将Topmost属性激活为"True of Form",这是您想要在顶部获得的唯一表单.所有其他表单都将Topmost属性设置为False.
如果完成"/未完成",请恢复您的帖子.
Activate the Topmost property to True of Form for the only form you want to get on the top. Rest of all the Forms set the Topmost Property to False.
If Done / Not-done then plz revert back on your post.


这篇关于总是第二个表格在特定表格的顶部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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