本文介绍了form.topmost问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个应用程序,它应该检测通过VNC的连接是否进入我们的机器,以向那些机器的操作员显示可能通过VNC进行远程控制。

如果建立了这样的连接,应用程序通常会保留在Tray中并变为Visible和TopMost。

一切正常...



现在我的问题:

在我们的机器上有不同的机器控制(HMI)应用程序。他们中的大部分都是我的应用程序来到TopMost - 其中一些不是。我想这些应用程序也将表单发送到TopMost。



我的应用程序是否有可能成为Top-TopMost?我想把它全部放在最上面 - 与所有其他应用程序发生的事情无关......



我尝试了什么:



像背景线程一样重复TopMost设置和刷新表格等等 - 我不知道......

I have created an Application with should detect if a connection via VNC comes into our machines to show the Operator of those machines that it could be possible that a remote control via VNC could happen.
This Application normally stays in Tray and becomes Visible and TopMost if such a connection is established.
All works properly ...

Now my Problem :
On our machines are different applications for the machine-control (HMI). By most of them my App comes to TopMost - by some of them not. I suppose that those applications are also sending their Form to TopMost.

Is there any possiblity for my app to become Top-TopMost ? I want to have it allways on Top - independant from all what happens with possible other applications ...

What I have tried:

Severall things like repeating the TopMost-settings and Refreshing the form by the Background-Thread - in the moment I have no idea ...

推荐答案


这篇关于form.topmost问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-27 18:06