簡體   English   中英

從服務器運行實例時,Winform TopMost屬性無法正常運行

[英]Winform TopMost Property not working properly when instance is running from Sever

我已經開發了一個基於COM的Windows Form應用程序,並將其部署在Windows Server 2008 R2上。

該過程是用戶從瀏覽器打開安裝在同一服務器上的另一個第三方應用程序,然后針對特定操作,第三方應用程序將啟動我的應用程序實例。

一切工作正常,除非在用戶計算機中打開我的應用程序實例時,它不是完全的TopMost窗口。 用戶計算機的任務欄半顯示在正在運行的應用程序上。 以下是我正在使用的代碼,並且我還附加了圖像。 誰能幫我解決這個問題。

private void frmCyberLab_Load(object sender, EventArgs e)
{
      Module.cancelled = false;
      this.FormBorderStyle = FormBorderStyle.Sizable;
      this.TopLevel = true;
      this.TopMost = true;
      this.Location = new Point(0, 0);
      this.Height = Screen.PrimaryScreen.Bounds.Size.Height;
      this.Width = Screen.PrimaryScreen.Bounds.Size.Width;

      // Some more code here not related to form's display property.
}

在此處輸入圖片說明

編輯-我什至嘗試使用FormBorderStyle = FormBorderStyle.None; 如評論中所建議,但我仍然面臨這個問題。 有人可以告訴我原因可能是什么,如何解決。

為了解決這個問題,我遵循了這篇文章-http: //www.codeproject.com/Articles/16618/How-To-Make-a-Windows-Form-App-Truly-Full-Screen-a,並且還必須刪除在表格中使用邊框的想法。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM