最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

.net - Can't a remote APP using AxMsRdpClient11NotSafeForScripting be moved to a 2nd left screen with different scale? -

programmeradmin9浏览0评论

In my .NET Framework 4.8 project I am using the class AxMsRdpClient11NotSafeForScripting from the AxMSTSCLib library to open a remote APP. I have a second screen on the left where I can't drag the APP to. I can if the two screens have the same scale or if the 2nd screen is located on the right side. Is there a way it could work on the left side and with different scales?

I have tried the following:

  1. I have changed this:
rdpclient.DesktopWidth = System.Windows.Forms.SystemInformation.PrimaryMonitorSize.Width
rdpclient.DesktopHeight = System.Windows.Forms.SystemInformation.PrimaryMonitorSize.Height

To this:

rdpclient.DesktopWidth = System.Windows.Forms.SystemInformation.VirtualScreen.Width
rdpclient.DesktopHeight = System.Windows.Forms.SystemInformation.VirtualScreen.Height

And this:

rdpclient.DesktopWidth = ClientRectangle.Width
rdpclient.DesktopHeight = ClientRectangle.Height
  1. In app.config, I added:
  <windowsSettings>
    <application>
        <dpiAware>true/pm</dpiAware>
    </application>
  </windowsSettings>
  1. In the app.manifest file I added:
  <windowsSettings>
     <dpiAware xmlns="urn:schemas-microsoft-com:asm.v3">true/pm</dpiAware>
  </windowsSettings>

Nothing worked.

UPDATE: I have asked on the Microsoft website and it might be a bug.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论