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:
- 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
- In app.config, I added:
<windowsSettings>
<application>
<dpiAware>true/pm</dpiAware>
</application>
</windowsSettings>
- 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.