AxMsRdpClient11远程APP无法移至左侧异缩放副屏问题求助
多屏缩放不一致(副屏在左侧)时,AxMsRdpClient11NotSafeForScripting无法拖拽远程APP到副屏的问题
在.NET Framework 4.8项目中,使用AxMSTSCLib库的AxMsRdpClient11NotSafeForScripting类打开远程APP时,存在以下异常表现:
- 当副屏位于左侧且与主屏缩放比例不同时,无法将远程APP拖拽至副屏
- 两屏缩放比例相同,或副屏位于右侧时,拖拽操作可正常执行
已尝试的无效解决方案
- 修改RDP客户端桌面尺寸配置
原有代码:
修改为以下两种写法后问题仍未解决:rdpclient.DesktopWidth = System.Windows.Forms.SystemInformation.PrimaryMonitorSize.Width rdpclient.DesktopHeight = System.Windows.Forms.SystemInformation.PrimaryMonitorSize.Heightrdpclient.DesktopWidth = System.Windows.Forms.SystemInformation.VirtualScreen.Width rdpclient.DesktopHeight = System.Windows.Forms.SystemInformation.VirtualScreen.Heightrdpclient.DesktopWidth = ClientRectangle.Width rdpclient.DesktopHeight = ClientRectangle.Height - 在
app.config中添加DPI感知配置:<windowsSettings> <application> <dpiAware>true/pm</dpiAware> </application> </windowsSettings> - 在
app.manifest文件中添加DPI感知配置:<windowsSettings> <dpiAware xmlns="urn:schemas-microsoft-com:asm.v3">true/pm</dpiAware> </windowsSettings>
经微软社区反馈,该问题疑似为AxMSTSCLib库的官方Bug。
内容的提问来源于stack exchange,提问作者ArnauBM
相关产品推荐
相关产品推荐

