osx mono winforms 令人不快地总是保持在最前面

osx mono winforms undesirably stays always on top

我使用 VS 2013 Windows Forms(.NET3.5) 在 c# 中制作了一个应用程序,在 Ubuntu 上对其进行了正面测试 - 没有问题(使用单声道)。

现在开始在安装了单声道的 MacOS Maverick 10.9 上进行测试。

无论如何,我的表格都在最前面,甚至 MessageBox.Show(this,"blah"); 都被表格覆盖了。

到目前为止我尝试了什么: 在设计器视图中将 TopMost 设置为。 将 this.TopMost = false; 添加到 public Form1(){}

有什么办法可以解决这个问题吗?

我的表单没有边框,控制框。而不是这个我使用图像作为背景。

好的,我有一个小函数可以检测它是否为 Mac 然后更改 FormBorderStyle

 if (OSDetection.os == "MAC")  // Mac fix for always on top
            {
                this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
            }

我似乎无法将边框设置为 none,因为我的表单将始终显示在其他 windows.

之上