如何仅使表格成为应用程序的最上层? [英] How to make form topmost to the application only?

查看:149
本文介绍了如何仅使表格成为应用程序的最上层?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作excel加载项,其中单击菜单项或工具栏按钮,即会打开表单.我已经将form的最上层设置为true,但对于Windows XP的所有应用程序来说,它仍然是最上层的.我只需要保持对Microsoft Excel的最高关注.

我已在Visual Studio 2008中的Excel中选择了项目-> 2003.

请告诉我如何使用该方法........

I am making excel add-in in which clicking on menu item or toolbar button, Form opened. I have set form''s topmost to true but it remain topmost to all applications of windows xp. I just need to remain topmost to Microsoft Excel only.

I have choosed project in Visual Studio 2008, in Excel ->2003.

Please tell me how to do that with any way ........

推荐答案

如您所见,最顶层适用于所有z阶活动的Windows.对于您想要的内容,您需要将表单的父级设置为Excel窗口.
As you''ve seen topmost applies to the z-order of all active Windows. For what you want you need to set the form''s parent as the Excel window.


这篇关于如何仅使表格成为应用程序的最上层?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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