且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

总是第二个表格在特定表格的顶部

更新时间:2023-02-06 19:02:24

使用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.