无论如何,让我的表格位于顶部

发布于 2024-09-09 07:27:57 字数 256 浏览 1 评论 0原文

我需要一种方法,可以让我的表单在其他表单不希望时移动到顶部。

我不是在谈论 myForm.BringToFrontmyForm.TopMost

我希望有一个 P/Invoke 可以让我进入操作系统并说“这个表单位于顶部,无论如何”。

我需要这个的原因是我有一个应用程序偶尔会在我的设备管理应用程序后面运行。应用程序的配置方式使其无法最小化。

任何帮助都会......有帮助。

I need a method that will make my form move to the top when other forms do not want them to.

I am not talking about myForm.BringToFront or myForm.TopMost.

I am hoping that there is a P/Invoke that I can do to get into the OS and say, "This Form On Top, NO MATTER WHAT".

The reason I am needing this is that I have an app that is occasionally going behind my Device Management app. The way that app is configured is such that it cannot be minimized.

Any help would be ... helpful.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

往日情怀 2024-09-16 07:27:57

P/Invoke SetWindowsPos 与 HWND_TOPMOST。

P/Invoke SetWindowsPos with HWND_TOPMOST.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文