You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

AxMsRdpClient11远程APP无法移至左侧异缩放副屏问题求助

多屏缩放不一致(副屏在左侧)时,AxMsRdpClient11NotSafeForScripting无法拖拽远程APP到副屏的问题

在.NET Framework 4.8项目中,使用AxMSTSCLib库的AxMsRdpClient11NotSafeForScripting类打开远程APP时,存在以下异常表现:

  • 当副屏位于左侧且与主屏缩放比例不同时,无法将远程APP拖拽至副屏
  • 两屏缩放比例相同,或副屏位于右侧时,拖拽操作可正常执行

已尝试的无效解决方案

  1. 修改RDP客户端桌面尺寸配置
    原有代码:
    rdpclient.DesktopWidth = System.Windows.Forms.SystemInformation.PrimaryMonitorSize.Width
    rdpclient.DesktopHeight = System.Windows.Forms.SystemInformation.PrimaryMonitorSize.Height
    
    修改为以下两种写法后问题仍未解决:
    rdpclient.DesktopWidth = System.Windows.Forms.SystemInformation.VirtualScreen.Width
    rdpclient.DesktopHeight = System.Windows.Forms.SystemInformation.VirtualScreen.Height
    
    rdpclient.DesktopWidth = ClientRectangle.Width
    rdpclient.DesktopHeight = ClientRectangle.Height
    
  2. 在app.config中添加DPI感知配置:
    <windowsSettings>
      <application>
          <dpiAware>true/pm</dpiAware>
      </application>
    </windowsSettings>
    
  3. 在app.manifest文件中添加DPI感知配置:
    <windowsSettings>
       <dpiAware xmlns="urn:schemas-microsoft-com:asm.v3">true/pm</dpiAware>
    </windowsSettings>
    

经微软社区反馈,该问题疑似为AxMSTSCLib库的官方Bug。

内容的提问来源于stack exchange,提问作者ArnauBM

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.14 15:42:04